After much struggling, I, a Linux noob, have rssh running with a chroot jail, with the exception that when an SFTP user logs in, it puts him in the chroot root directory instead of the user's home directory.
From there, the user can manually CD into his home directory.
In /var/messages I see:
Aug 3 14:59:37 sftp pam_winbind[3218]: user 'username' granted access
Aug 3 14:59:37 sftp sshd(pam_unix)[3220]: session opened for user username by (uid=0)
Aug 3 14:59:37 sftp rssh[3221]: setting log facility to LOG_USER
Aug 3 14:59:38 sftp rssh[3221]: allowing scp to all users
Aug 3 14:59:38 sftp rssh[3221]: allowing sftp to all users
Aug 3 14:59:38 sftp rssh[3221]: setting umask to 022
Aug 3 14:59:38 sftp rssh[3221]: chrooting all users to /sftproot/chroot
Aug 3 14:59:38 sftp rssh[3221]: chroot cmd line: /usr/local/libexec/rssh_chroot_helper 2 "/usr/libexec/openssh/sftp-server"
Aug 3 21:59:38 sftp rssh_chroot_helper[3221]: new session for username, UID=682
Aug 3 21:59:38 sftp rssh_chroot_helper[3221]: user's home dir is /sftproot/chroot/home/username
Aug 3 21:59:38 sftp rssh_chroot_helper[3221]: chrooted to /sftproot/chroot
Aug 3 21:59:38 sftp rssh_chroot_helper[3221]: changing working directory to /home/username (inside jail)
Aug 3 21:59:38 sftp rssh_chroot_helper[3221]: could not cd to user's home dir: /home/username
rssh.conf:
logfacility = LOG_USER
allowscp
allowsftp
umask = 022
chrootpath = /sftproot/chroot
this user's entry in /etc/passwd looks like this:
username:x:682:682::/sftproot/chroot/home/username:/usr/local/bin/rssh
Strangely, it did work one time, in between failures. I have no explanation.
This is Red Hat Enterprise v4.
Rssh is v2.3.2.
I will greatly appreciate any help with this. Thanks!
- Rick
Groups are talking. We´re listening. Check out the handy changes to Yahoo! Groups.
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ rssh-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rssh-discuss
