[scponly] scponly okay,
scponlyc doesn't work and it gives no information
Andrew Robinson
andrew.rw.robinson at gmail.com
Sat Mar 25 09:47:33 EST 2006
Found the problem with sftp:
chroot /home/testuser /usr/libexec/sftp-server
Couldn't open /dev/null: No such file or directory
So I:
mknod /home/testuser/dev/null c 1 3
chroot /home/testuser /usr/libexec/sftp-server
All good now
On 3/25/06, Andrew Robinson <andrew.rw.robinson at gmail.com> wrote:
> I also have no command:
> su - testuser
>
> WinSCP: this is end-of-file:0
>
> Doesn't look right to me...
>
> On 3/25/06, Andrew Robinson <andrew.rw.robinson at gmail.com> wrote:
> > ldconfig -v -r /home/testuser:
> >
> > ldconfig: Can't stat /usr/X11R6/lib: No such file or directory
> > ldconfig: Can't stat /usr/i486-slackware-linux/lib: No such file or directory
> > ldconfig: Can't stat /opt/kde/lib: No such file or directory
> > ldconfig: Can't stat /usr/lib/qt/lib: No such file or directory
> > /usr/local/lib:
> > libsvn_fs_base-1.so.0 -> libsvn_fs_base-1.so.0
> > libsvn_ra_local-1.so.0 -> libsvn_ra_local-1.so.0
> > libsvn_diff-1.so.0 -> libsvn_diff-1.so.0
> > libsvn_subr-1.so.0 -> libsvn_subr-1.so.0
> > libsvn_client-1.so.0 -> libsvn_client-1.so.0
> > libsvn_wc-1.so.0 -> libsvn_wc-1.so.0
> > libsvn_ra-1.so.0 -> libsvn_ra-1.so.0
> > libsvn_fs-1.so.0 -> libsvn_fs-1.so.0
> > libsvn_repos-1.so.0 -> libsvn_repos-1.so.0
> > libsvn_delta-1.so.0 -> libsvn_delta-1.so.0
> > libsvn_ra_dav-1.so.0 -> libsvn_ra_dav-1.so.0
> > libsvn_ra_svn-1.so.0 -> libsvn_ra_svn-1.so.0
> > libsvn_fs_fs-1.so.0 -> libsvn_fs_fs-1.so.0
> > /lib:
> > librt.so.1 -> librt.so.1
> > libc.so.6 -> libc.so.6
> > libpthread.so.0 -> libpthread.so.0
> > libdl.so.2 -> libdl.so.2
> > ld-linux.so.2 -> ld-linux.so.2
> > libcrypt.so.1 -> libcrypt.so.1
> > libnss_compat.so.2 -> libnss_compat.so.2
> > libutil.so.1 -> libutil.so.1
> > libnsl.so.1 -> libnsl.so.1
> > libdb-4.2.so -> libdb-4.2.so
> > libresolv.so.2 -> libresolv.so.2
> > libm.so.6 -> libm.so.6
> > /usr/lib:
> > libcrypto.so.0 -> libcrypto.so.0
> > libgdbm.so.3 -> libgdbm.so.3
> > libpopt.so.0 -> libpopt.so.0
> > libxml2.so.2 -> libxml2.so.2
> > libz.so.1 -> libz.so.1
> > libexpat.so.0 -> libexpat.so.0
> >
> >
> > root at bserver:~# chroot /home/testuser && /usr/libexec/sftp-server
> > chroot: cannot run command `/bin/bash': No such file or directory
> >
> >
> > > On 3/24/06, Kaleb Pederson <kpederson at mail.ewu.edu> wrote:
> > > > Sorry, I wasn't paying close enough attention to your first e-mail.
> > > >
> > > > Looking at your first e-mail:
> > > > > Mar 23 23:25:34 bserver scponly[29713]: retrieved home directory of
> > > > > "/home/testuser" for user "testuser"
> > > > > Mar 23 23:25:34 bserver scponly[29713]: chrooting to dir: "/home/testuser"
> > > > > Mar 23 23:25:34 bserver scponly[29713]: chdiring to dir: "/"
> > > >
> > > > So, you are using scponlyc as you indicated. Is /home/testuser setup as a
> > > > chroot? When you ran ldd, were you running it from within the chroot?
> > > >
> > > > What do you get as output for: 'ldconfig -v -r /home/testuser'
> > > >
> > > > Also, can you: 'chroot /home/testuser && /usr/libexec/sftp-server'. If it
> > > > runs correctly, it should just sit there waiting for input.
> > > >
> > > > Thanks.
> > > >
> > > > --Kaleb
> > > >
> > > >
> > > >
> > >
> >
>
More information about the scponly
mailing list