Locking Users to their own Home dir

Associate
Joined
2 Jul 2004
Posts
1,430
Hi,

I'm setting up a server to host some files so that my friends can connect in via SSH. How can I limit them browsing only their own home user directory ?

There will also be a separate set of hosting files for apache

and access to a mysql DB

Thanks
 
Ideally each user will be in their own group. You can then simply set permissions on the filesystem to restrict where the users can browse/read and write. (have a look at the man page for chown, chmod and chgrp).
 
Back
Top Bottom