OSX chown problems after creating users with dscl

Posted by RandomInsano on Server Fault See other posts from Server Fault or by RandomInsano
Published on 2011-03-03T23:14:28Z Indexed on 2011/03/03 23:26 UTC
Read the original article Hit count: 267

Filed under:
|
|

Alright, so I've made a user and a group using dscl as follows:

dscl . -create /Users/deadline
dscl . -create /Groups/deadline
dscl . -append /Groups/deadline GroupMembership deadline

Now I'm trying to chown things like so:

mkdir /tmp/stuff
chown deadline:deadline /tmp/stuff

But the problem is that it sets the user and group to nobody instead of this user 'deadline'. What magic voodoo property do I need to add to the user and group to have it set the unix permissions properly?

Also, why must Apple hate me and my Unix background :(

© Server Fault or respective owner

Related posts about macosx

Related posts about chown