Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

Thanks.

share|improve this question
add comment

2 Answers

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
add comment

you could always use access control setfacl for this.

http://www.unix.com/man-page/FreeBSD/1/setfacl/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.