Hi,
I installed the rssh rpm package on my machine using RH5 as OS.
I also:
- run the mkchroot.sh script
- set /FTPRepository as chroot and allowsftp in /etc/rssh.conf
- added a new user having /usr/bin/rssh as shell and /FTPRepository/users/<myuser> as home directory
- set the syslog conf
When I try to connect to the machine using sftp I got a 'connection closed' message and in the messages trace I have:
Jun 16 11:38:20 nas1 rssh[374]: setting log facility to LOG_USER
Jun 16 11:38:20 nas1 rssh[374]: allowing sftp to all users
Jun 16 11:38:20 nas1 rssh[374]: setting umask to 022
Jun 16 11:38:20 nas1 rssh[374]: chrooting all users to /FTPRepository
Jun 16 11:38:20 nas1 rssh[374]: chroot cmd line: /usr/libexec/rssh_chroot_helper 2 "/usr/libexec/openssh/sftp-server"
Jun 16 09:38:20 nas1 rssh_chroot_helper[374]: new session for fmd_bitbop, UID=701
Jun 16 09:38:20 nas1 rssh_chroot_helper[374]: user's home dir is /FTPRepository/users/fmd_bitbop
Jun 16 09:38:20 nas1 rssh_chroot_helper[374]: chrooted to /FTPRepository
Jun 16 09:38:20 nas1 rssh_chroot_helper[374]: changing working directory to /users/fmd_bitbop (inside jail)
Jun 16 09:38:20 nas1 rssh_chroot_helper[374]: execv() failed, /usr/libexec/openssh/sftp-server: No such file or directory
Do you know what it is the problem?
Thanks
giu
Hi,
just one more info, both
/usr/libexec/openssh/sftp-server and /FTPRepository/usr/libexec/openssh/sftp-server
exist in the file system.
Let me know
Thanks
giu
Hi,
I found the issue, it was missing the
mknod -m 666 <new chroot path>/dev/null c 1 3 command
and also some libs
giu