After installing rssh, non-chroot works, but with chroot, I get the following:

-----
Jul 12 16:08:37 host sshd(pam_unix)[20134]: session opened for user sprint by (uid=515)
Jul 12 16:08:37 host rssh[20135]: setting log facility to LOG_USER
Jul 12 16:08:37 host rssh[20135]: setting umask to 022
Jul 12 16:08:37 host rssh[20135]: user xxxx attempted to execute forbidden commands
Jul 12 16:08:37 host rssh[20135]: command: /usr/libexec/openssh/sftp-server
Jul 12 16:08:37 host sshd(pam_unix)[20134]: session closed for user xxxx
-----

I've done a google search for this, and found the following link:  http://sourceforge.net/mailarchive/message.php?msg_id=7654492

Looking at that, it's advised that I post the output of my ./configure.  Here that is:

-----
[EMAIL PROTECTED] rssh-2.3.2]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for strip... strip
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h.. . yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking wordexp.h usability... yes
checking wordexp.h presence... yes
checking for wordexp.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking for an ANSI C-conforming const... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for memset... yes
checking for strdup... yes
checking for strtol... yes
checking for strerror... yes
checking for wordexp... yes
checking for basename... yes
checking for OpenSSH >= v3.5.. . yes - v3.6
checking for scp... /usr/bin/scp
checking for sftp-server... /usr/libexec/openssh/sftp-server
checking for cvs... /usr/bin/cvs
checking for rdist... /usr/bin/rdist
checking for rsync... /usr/bin/rsync
checking static compilation... secure SSH found - not compiling rssh statically
configure: creating ./config.status
config.status: creating Makefile
config.status: creating main.c
config.status: creating pathnames.h
config.status: creating rssh.conf.5
config.status: creating rssh.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
[EMAIL PROTECTED] rssh-2.3.2 ]#
-----

In addition, checking rssh -v gives the following:

-----
    rssh config file = /usr/local/etc/rssh.conf
  chroot helper path = /usr/local/libexec/rssh_chroot_helper
     scp binary path = /usr/bin/scp
  sftp server binary = /usr/libexec/openssh/sftp-server
     cvs binary path = /usr/bin/cvs
   rdist binary path = /usr/bin/rdist
   rsync binary path = /usr/bin/rsync
-----

I thought the problem might be that I needed to change the sftp server binary from there to the chrooted environment in the Makefile, but doing a ./configure --with-sftp-server=$chroot/usr/libexec/openssh/sftp-server showed the difference in the rssh -v, but no change in the error messages.

So, I'm stumped.  Is there anything I should try?

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
rssh-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rssh-discuss

Reply via email to