Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to have a mother user, with the root directory /home/user1 and have the rest of the users in /home/user1/users. How can I make it so the users still own their files, but the user user1 is still able to read/write/execute?


share|improve this question
up vote 1 down vote accepted

Each user could be a member of their own self-name group. And the "mother user" could be a member of each of those user groups. Then files created by users would have to be chmod 66? for files and 77? for directories. and the mother-user would have access to all the other user files.

One exception to the 66?/77? chmods would of course have to be .ssh directory for each user if they are going to use ssh. Otherwise SSH (for security reasons) would ignore anything in the .ssh directories (been there, done that).

share|improve this answer
What is happening now though is that the users that were created in user1's home directory are denied access to the directory, but user1 can't access the directory either. Meaning that user1 cannot access /home/user1/newuser and newuser cannot access that directory either. – hexacyanide Jun 13 '12 at 14:48
Instead of nesting the actual directories in each other, I would have all the users be off of /home, and just have the mother-user be "just another user" with their own directory off of /home. Sometimes nesting directories has unintended consequences. – killermist Jun 13 '12 at 14:51
@hexacyanide If you're needing additional input, I'm still here to help. – killermist Jun 14 '12 at 0:18

you could always use access control setfacl for this.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .