SSH Chroot Patch - Anyone successfully using it?
Asked on the chrootssh-users list, but it appears fairly inactive...
Patched SSH3.8.1p1-8(Debian Sarge) with osshChroot-3.8.1p1.diff.
Standard {chroot}/etc/passwd (i.e. no "/./") works fine.
Adding "/./" to user results in login failure:
mbellears3:x:1003:100::/./var/www/mbellears3:/bin/sh (I have tried
placing the "/./" in various locations of the user home dir without
success)
Oct 21 16:18:28 localhost sshd[1016]: Could not reverse map address
192.168.1.11.
Oct 21 16:18:30 localhost sshd[1016]: Accepted password for mbellears3
from 192.168.1.11 port 32920 ssh2
Oct 21 16:18:30 localhost sshd[1016]: (pam_unix) session opened for
user
mbellears3 by (uid=0)
Oct 21 16:18:30 localhost sshd[1017]: fatal: Couldn"t chroot to user
directory
Oct 21 16:18:30 localhost sshd[1017]: (pam_unix) session closed for
user
mbellears3
Oct 21 16:18:30 localhost sshd[1016]: syslogin_perform_logout: logout()
returned an error
Oct 21 16:18:30 localhost sshd[1016]: (pam_unix) session closed for
user
mbellears3
My chroot Jail is /var/chroot/apache (I have tried placing
/var/chroot/apache/var/www/./mbellears3 in /var/chroot/apache/etc/passwd
without success also.
SFTP + SSH both fail is the same manner.
Really appreciate some insight from anyone who is successfully using
this patch!
Regards,
MB
Reply to: