Find the answer to your Linux question:
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 ...
  1. #1
    gds
    gds is offline
    Just 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?

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    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.

  3. #3
    gds
    gds is offline
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...