Results 1 to 3 of 3
Dear All,
I would like to confine a user to certain folders only either when the user logs via ssh or sftp? Any idea where n how to do it? ...
- 10-22-2011 #1Just Joined!
- Join Date
- Jul 2010
- Posts
- 64
Confine user to certain folders only
Dear All,
I would like to confine a user to certain folders only either when the user logs via ssh or sftp? Any idea where n how to do it? I read about chroot/jail but very confuse how to do it?
- 10-24-2011 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
What is so confusing about it, if I may ask? Just make sure you're using a recent enough version of openssh (5.x?). Add a couple of lines to the sshd config file, restart it, and test it
Show what you've tried, and indicate any tut you've followed.
- 10-26-2011 #3Just Joined!
- Join Date
- Oct 2011
- Posts
- 50
Try this howto:
Chrooted SSH/SFTP Tutorial (Debian Lenny) | HowtoForge - Linux Howtos and Tutorials
It explains how to implement it for Debian


Reply With Quote