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.
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).
you could always use access control setfacl
for this.