Results 1 to 3 of 3
I have a basic question regarding permissions on directories. If my home directory /home/myuserid has permission 700 and I create a directory inside my home directory with permission 775, is ...
- 02-04-2008 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 2
Lower level directory permissions
I have a basic question regarding permissions on directories. If my home directory /home/myuserid has permission 700 and I create a directory inside my home directory with permission 775, is it possible for another user (not root) to list the contents or see inside this directory? The 5 would seem to indicate that it is, but having 700 on /home/myuserid seem to supersede the settings on lower level directories.
Only when I set /home/myuserid to 705 does this seem possible. Is this expected behavior?
- 02-04-2008 #2
If your /home/userid directory has permissions of 700, then any user other than you or root should not be able to see the files or directories inside /home/userid regardless of the permissions the files/directories have. If you want others to see files in your /home/userid then you need to give /home/userid permissions of 755 or 750.
- 02-04-2008 #3Just Joined!
- Join Date
- Feb 2008
- Posts
- 2
So if I set a file or directory deep inside my home directory to 777 permission, it could only be accessed by root or me? ...
Just tried it and it does seems to be the case. When I see my home dir to 705 only then could I cat the file. Didn't realize it worked like that. Thanks for verifying.


Reply With Quote