did anybody succeded in chrooting SSHd?
i tried several patches ( using the "magic token" /./ in /etc/passwd ) but it's just not working!
all i want to do is this:
1) i want people to use scp and/or sftp to upload files to my server.
2) but they can see ONLY the chrooted dir....
( let's say /chroot/mp3 ). all users have permisions to write in this dir ( which is "chmod +t /chroot/mp3" ) , and to delete their own files.
BUT they CAN'T see the rest of the system..!!
please help with this:)
i've tried the chrootssh.sourceforge project , but it's not working for me.
when i type "chroot /chroot/jail /bin/bash" it's ok! ( pwd is / . and all i can see is the jail ). but when i try to log via ssh it says "/bin/bash permision denied".....(in /etc/passwd i have :
and /bin/bash ( the chrooted one ) is r-xr-xr-x .
i just don't get it......the jail is ok....and i tried the patch , and the patched ssh......
I'll look at those link's you gave me....
but i'm looking for a solution that WORKS!:)
many people have done it, i havent, it is unusual for people to want to do it.
Your sure you have a /bin/bash INSIDE the jail?
yes .... when i do #chroot /chroot/jail /bin/bash i go in the jail , pwd is /
and i can see only the jai. But when i start sshd and log in pwd is /chroot/jail/home/admin , not just /home/admin....
in passwd the home dir is /chroot/jail/./home/admin
is SSHD starting from within the jail?
#chroot /chroot/jail /sbin/sshd
all is ok
Maybe a good place to go for help with this problem would be the SF chroot mailing list: email@example.com
Give a full description of the problem and someone may be able to help you.
Hey, man...I was just reading about that and was going to try to set it up. I'll let you know what I come up with. :)