How do I restrict users from going outside their home directory when connecting to the server via FTP or SSH?
How do I restrict users from going outside their home directory when connecting to the server via FTP or SSH?
I think the term is called a "chroot jail". I am by no means an expert in the field however, so I'd just be googling like you
Here's the official Ubuntu doc - https://help.ubuntu.com/community/BasicChroot
http://www.debian-administration.org/articles/590
FTP servers usually have an option in the configuration file for chroot'ing users. Which FTP server are you using?
Chroot environments for SSH servers where you need to provide shell access is rather difficult, since they basically need their own OS within their chroot directory in order for their shell to run. If you only need SFTP access, see the link above.
I am using pureftpd
Last edited by naminem; July 10th, 2010 at 10:06 PM.
Any help would be appreciated!
I use vsftp and it works like a charm on my system
Bookmarks