stat() failed, /usr/sbin/chroot /home/usr00020:
Brought to you by:
xystrus
From: Joaquim L. <lau...@lu...> - 2003-10-19 21:59:42
|
Hi, I have installed rssh, and am being unable to make the "chroot" process work. As far as I can see, I follow the config file instructions, but it fails to work. I am using RedHat 9.0 and "chroot" is located in "/usr/sbin". I even copied "chroot" to "/usr/local", but it still fails to work. "chroot" works if I use it in a command line as root. And I can sftp to the account if I remove the "chroot" step from the user configuration line. I will appreciate your help. Below I provide the log and config data. ------------------- log data -------------------------------- Oct 19 15:36:20 tyan2100fe sshd(pam_unix)[6096]: session opened for user usr00020 by (uid=511) Oct 19 15:36:20 tyan2100fe rssh[6097]: setting log facility to LOG_USER Oct 19 15:36:20 tyan2100fe rssh[6097]: setting umask to 027 Oct 19 15:36:20 tyan2100fe rssh[6097]: line 40: configuring user usr00020 Oct 19 15:36:20 tyan2100fe rssh[6097]: setting usr00020's umask to 022 Oct 19 15:36:20 tyan2100fe rssh[6097]: allowing scp to user usr00020 Oct 19 15:36:20 tyan2100fe rssh[6097]: allowing sftp to user usr00020 Oct 19 15:36:20 tyan2100fe rssh[6097]: chrooting usr00020 to /usr/sbin/chroot /home/usr00020 Oct 19 15:36:20 tyan2100fe rssh[6097]: chroot cmd line: /usr/libexec/rssh_chroot_helper "/usr/sbin/chroot /home/usr00020" 2 "/" /usr/libexec/openssh/sftp-server Oct 19 15:36:20 tyan2100fe rssh_chroot_helper[6097]: new session for usr00020, UID=511 Oct 19 15:36:20 tyan2100fe rssh_chroot_helper[6097]: stat() failed, /usr/sbin/chroot /home/usr00020: No such file or directory Oct 19 15:36:20 tyan2100fe sshd(pam_unix)[6096]: session closed for user usr00020 ------------------- partial config data -------------------------- # if you want to chroot users, use this to set the directory # if you DO NOT want to chroot users, LEAVE THIS COMMENTED OUT. # Quotes not required unless path contains a space... #chrootpath="/usr/sbin/chroot /tmp" # non-quoted spaces don't matter, so long as they aren't in the middle # of a token (like a keyword) #user = "rudy:011:01:/usr/local/chroot dir" user=usr00020:022:11:"/usr/sbin/chroot /home/usr00020" -- Joaquim Laureano Lusostar Technologies, LLC 291 Old Deal Road Eatontown, NJ 07724 Phone: 732-542-4890 Email: lau...@lu... |