# Creating a Sub-User for Main User | Linux | Permissions

I am trying to find out how to create ssh users that can work inside my sites directories but not have complete access except for the folders I specify.

The only issue is that I need the sub-users not to create privledge issues. It's like I want a site owner to act like root when it deals with anything in his site folder, created by him or the other workers.

Any suggestions on a stable solution?

Thanks

-
did you look at chroot environments? –  Dmitri Chubarov Apr 24 '12 at 17:17
not really needing that much. the problem I am having now is that I created a home directory for the user, then created links to the folders I want them to have. The problem is they are writing with permission +755 and permission denied when I try to overwrite. –  RichardW11 Apr 24 '12 at 18:42
Have you considered using ACLs? –  fpmurphy1 Apr 24 '12 at 22:14
+fpmurphy this was a good read thanks. –  RichardW11 Apr 25 '12 at 1:36
have you check into groups, setuid (in directories) or, for changing the permission, changing the umask for those users ? –  Feiticeir0 Apr 25 '12 at 10:17

Make the primary group the same for all of these users

usermod -g users user1
usermod -g users user2
# (etc)


Set the umask for each user to 0002

echo 'umask 0002' >> ~user1/.bashrc

find /dat -exec chgrp -R users * \;