Link to home
Start Free TrialLog in
Avatar of NetNinja
NetNinja

asked on

Trying to give user access to the home directory

Hey Team,

I am running RedHat and SFTP, within that server I have user/SFTP accounts. I need give a few users full access to this directory only (The Home Dir not his home). he needs to move files and then deposit files at will.
But I don't want to give him full root access to the entire server.

Could I just create a Group? then assign that user and then the Home directory to that group?
Then in the future if I need to give more people access to the folder just create a user and then add them to that group?

Also any snytax on how to create this would be most helpful

Thanks
ASKER CERTIFIED SOLUTION
Avatar of modcon_jscott
modcon_jscott

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Could I just create a Group? then assign that user and then the Home directory to that group?
yes that would work..you would also need to chgrp the home dir
Avatar of modcon_jscott
modcon_jscott

yes you can just create the group, but if you are going this far why not just give them root access anyway. This new user and all users who are part of this new group will be able to do what they please below /home

You could use sudo to control what commands this user can and cant run.

http://en.wikipedia.org/wiki/Sudo


Yes the group thing will work.  Unless you trust this user as much as you trust yourself, I would use a script based solution in conjunction with configuring your, hopefully jailed, FTP server.
Avatar of NetNinja

ASKER

Thanks for your time.