I have created a folder with user 'afayes' called tempfolder in directory '/Users/afayes' and have set permissions to be able to read, write and execute for all users:
drwx---rwx 2 afayes staff 64 6 Mar 15:16 tempfolder
I am trying to access the tempfolder with user called 'testuser'. From the directory '/Users/afayes' I am executing:
cd tempfolder/
I get the error
-bash: cd: tempfolder: Permission denied
When I try to access the same folder with another user called 'jenkins' I can access it. I don't understand why 'testuser' cannot access it.
Best Answer
The problem you are having is because it has no group permissions.
Execute
chmod -R g+rwx /Users/afayes/tempfolder
in the shell. At that point the permissions will bedrwxrwxrwx
and all will be well.