[scponly] sftp-server "No such file or directory"

Kaleb Pederson kaleb.pederson at gmail.com
Wed Feb 6 13:44:48 EST 2008


I'm glad to hear it's working... but sad that the error messages were poor 
enough to send us on a wild goose chase.

--Kaleb

On Wednesday 06 February 2008, Dean Montgomery wrote:
> It is now working.  I did an `ldd /bin/sh` and copied the libraries into
> the chroot.
>
> cd /home/dean
> cp -p /lib/libncurses.so.5 lib/
> cp -p /lib/libdl.so.2 lib/
> cp -p /lib/libc.so.6 lib/
> mkdir lib64
> cp -p /lib64/ld-linux-x86-64.so.2 lib64/
>
> I copied /bin/sh and chrooted into it then removed sh
>
> sftp works!
>
> Thanks for your help.
>
> On February 6, 2008, you wrote:
> > Unfortunately, the strace logs don't really give me any extra
> > information.
> >
> > A few questions:
> >
> > * What version of scponly are you running?  If not running the latest
> > version, please upgrade let us know if thath helps.
> > * What are the permissions on scponlyc?
> > * Can you temporarily copy /bin/sh (and any required libraries) into the
> >   chroot and try to su to the user in question and execute
> >   /usr/lib/sftp-server?





More information about the scponly mailing list