Results 1 to 3 of 3
Hello, I'm using the SFTP from ssh server to make my connections to my Debian linux 6.0. I've created a new user with a goal of manage a single server, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-27-2013 #1
- Join Date
- May 2012
I'm using the SFTP from ssh server to make my connections to my Debian linux 6.0. I've created a new user with a goal of manage a single server, GTA. So on the creation I defined his home directory as /home/gta, BUT the user can simply do cd.. and his out of that folder and he can navigate through all the server directories. How can I block this use to navigate ONLY in his home directory?
- 03-27-2013 #2
- 03-28-2013 #3
- Join Date
- Sep 2011
When I set up my file server I used ChrootDirectory (with only SFTP access - no shell login), as elija suggested, by following the steps on this page:
h t t p : / / w w w .thegeekstuff.com/2012/03/chroot-sftp-setup/
I did things a little differently, though. The instructions on that page use a separate directory for the SFTP users, but I wanted to keep the user directories in /home, so I gave /home root:root user/group ownership and the individual home directories have $USER:sftpusers user/group ownership.