Find the answer to your Linux question:
Results 1 to 3 of 3
I am quite new to Linux user policies that's why I've got this question. For example, I've created a user named testuser with his home directory located at /home/testuser/ How ...
  1. #1
    Just Joined!
    Join Date
    Aug 2008
    Posts
    6

    Linux User Viewing Permissions

    I am quite new to Linux user policies that's why I've got this question. For example, I've created a user named testuser with his home directory located at /home/testuser/ How do I deny viewing other directories by this user that are located outside his home directory?

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    I don't think you can bar specific users from seeing a file. You can make files and directories inaccessible to the "world", and they will then only be accessible to their owner and perhaps others in his/her group, but you can't easily exclude one user and not others. Perhaps if you put all your other users in a special group (excluding testuser) and assigned the relevant directories to this group...
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Users need to read many files and directories outside their /home otherwise they would not be able to login, create temporary files, etc. You can use user and group permissions to restrict access to certain directories, but you can't confine them to their home directory without causing problems.

Posting Permissions

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