Problem setting up rssh
Brought to you by:
xystrus
From: Robert M. <rob...@ya...> - 2003-12-04 04:37:52
|
Some of the names in this file have been change for security reasons... Linux machine 2.4.20-13.9 #1 Mon May 12 10:55:37 EDT 2003 i686 i686 i386 GNU/Linux > rpm -qa | grep openssh openssh-clients-3.5p1-6 openssh-3.5p1-6 openssh-server-3.5p1-6 I installed rssh-2.1.1-1.RH9.i386.rpm. The entry in /etc/rssh.conf: user=hiduser:002:11:/var/spool/ftp/dir #!/bin/sh mkdir -p /var/spool/ftp/dir cd /var/spool/ftp/dir for i in /usr/bin/scp /usr/libexec/openssh/sftp-server /usr/libexec/rssh_chroot_helper; do tar -cBf - $i | tar -xBvf - tar -cBf - `ldd $i | awk '{ print $3 }'` | tar -xBvf - done tar -cBf - /etc/passwd /etc/ld.so* /lib/libnss_files.so.? | tar -xBvf - mkdir dev When I try to sftp to the machine I get: Dec 3 21:11:39 machine sshd(pam_unix)[7748]: session opened for user hiduser by (uid=3004) Dec 3 21:11:39 machine rssh[7749]: setting log facility to LOG_USER Dec 3 21:11:39 machine rssh[7749]: setting umask to 022 Dec 3 21:11:39 machine rssh[7749]: line 41: configuring user hiduser Dec 3 21:11:39 machine rssh[7749]: setting hiduser's umask to 02 Dec 3 21:11:39 machine rssh[7749]: allowing scp to user hiduser Dec 3 21:11:39 machine rssh[7749]: allowing sftp to user hiduser Dec 3 21:11:39 machine rssh[7749]: chrooting hiduser to /var/spool/ftp/dir Dec 3 21:11:39 machine rssh[7749]: chroot cmd line: /usr/libexec/rssh_chroot_helper "/var/spool/ftp/dir" 2 "/" /usr/libexec/openssh/sftp-server Dec 3 21:11:39 machine sshd(pam_unix)[7748]: session closed for user hiduser Dec 4 05:11:39 machine rssh_chroot_helper[7749]: new session for hiduser, UID=3004 Dec 4 05:11:39 machine rssh_chroot_helper[7749]: execv() failed, /usr/libexec/openssh/sftp-server: No such file or directory The file /var/spool/ftp/dir/usr/libexec/openssh/sftp-server exists. What have I done wrong? __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ |