[scponly] sftp-server binary not found

YLB ylebihan at gmail.com
Thu Aug 31 22:36:35 EDT 2006


Hi!

I'm trying to install scponly (chrooted) on a new server running Gentoo Linux.
After ./configure ; make ; make install all seems to be right (I just
had to add "/usr/lib/misc" to the PATH variable for sftp-server in the
"configure" script).

But when I try an sftp connection to my server, it disconnects
immediatly and syslog says (in debuglevel mode 1) :

Sep  1 04:33:02 server sshd[11420]: Accepted keyboard-interactive/pam
for toto from XX.XX.XX.XX port 3607 ssh2
Sep  1 04:33:02 server sshd(pam_unix)[11423]: session opened for user
toto by (uid=0)
Sep  1 04:33:02 server sshd[11423]: subsystem request for sftp
Sep  1 04:33:02 server scponly[11424]: chrooted binary in place, will chroot()
Sep  1 04:33:02 server scponly[11424]: 3 arguments in total.
Sep  1 04:33:02 server scponly[11424]:     arg 0 is scponlyc
Sep  1 04:33:02 server scponly[11424]:     arg 1 is -c
Sep  1 04:33:02 server scponly[11424]:     arg 2 is /usr/lib/misc/sftp-server
Sep  1 04:33:02 server scponly[11424]: opened log at LOG_AUTHPRIV,
opts 0x00000009
Sep  1 04:33:02 server scponly[11424]: retrieved home directory of
"/home/toto//toto" for user "toto"
Sep  1 04:33:02 server scponly[11424]: chrooting to dir: "/home/toto"
Sep  1 04:33:02 server scponly[11424]: chdiring to dir: "/toto"
Sep  1 02:33:02 server scponly[11424]: setting uid to 1008
Sep  1 02:33:02 server scponly[11424]: processing request:
"/usr/lib/misc/sftp-server"
Sep  1 02:33:02 server scponly[11424]: running:
/usr/lib/misc/sftp-server (username: toto(1008), IP/port: XX.XX.XX.XX
3607 22)
Sep  1 02:33:02 server scponly[11424]: failed:
/usr/lib/misc/sftp-server with error No such file or directory(2)
(username: toto(1001), IP/port: XX.XX.XX.XX 3607 22)
Sep  1 04:33:02 server sshd(pam_unix)[11423]: session closed for user toto


:-(( do you have an idea or a clue for me ?...
(sftp-server binary is in the chroot in usr/lib/misc/)

Cheers,

YLB.



More information about the scponly mailing list