You are not logged in.
Here's the deal: I have a server running (it runs Ubuntu since it's a x586) and I want people to use ssh to gain access to it which is easy, but...
I want to lock the "sftp-users" to their home directory (I'm thinking that I can give them all the same home dir and then bind the partition with the goodies to it which would give everyone the same content) but how do I prevent them from going "lower" than their home dir, ie /home?
Do I make sense? (I'm a bit tired.) I assume that this can be done, but how?
I'm thankfull for every bit of information I can get.
Stefan Nitsche
stefan_at_nitsche_dot_se
Offline
IIRC, you want a tool called "chrootjail" or something like that. I've never used it, just seen it recommended before.
Dusty
Offline
You need to create a chrooted environment, ;Ike the Gentoo installation uses. There's plenty of information on Google, like http://www.howtoforge.com/chrooted_ssh_howto_debian & http://www.brandonhutchinson.com/chroot_ssh.html. Though they are kinda old
Offline
found one on the arch wiki: http://wiki.archlinux.org/index.php/Openssh-chroot
Hope it helps.
EDIT: and this one: http://chrootssh.sourceforge.net/docs/chrootedsftp.html
Offline
Thank you very much everyone. It's now set up and working perfectly.
Stefan Nitsche
stefan_at_nitsche_dot_se
Offline
you're welcome. Please add [solved] to the topic's title.
Offline