0
1
I have a couple of users, one was created via OSX GUI, one is nobody for nginx and php-fpm.
All commands below are executed as root.
I created new group for my project:
dscl . -create /groups/mygroup gid 404 # used some random id here, is it ok?
added users to group:
dseditgroup -o edit -a myuser -t user mygroup
dseditgroup -o edit -a nobody -t user mygroup
id
says that users are indeed in that group now.
ls -la
returns among other things:
drwxr-xr-x 27 myuser mygroup 918 Dec 4 00:00 myproject
but
sudo -u nobody stat /Users/myuser/Documents/www/myproject
returns
stat: Permission denied
What is wrong?