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

Nick Payne-Roberts nick at payne-roberts.com
Sun Sep 5 15:41:50 EDT 2004


hi,



I have installed the scponly onto a fedora core1 system and have been
experiencing a problem when authentificating logon of a user which has been
set to the new scponly shell.



This is the following error i get when trying to log in using 'pics' user:



Sep  5 15:35:08 1n6-213 sshd[29875]: debug1: temporarily_use_uid: 518/519
(e=0/0)

Sep  5 15:35:08 1n6-213 sshd[29875]: debug1: trying public key file
/var/www/html/mortalis/pics/.ssh/authorized_keys

Sep  5 15:35:08 1n6-213 sshd[29875]: debug1: matching key found: file
/var/www/html/mortalis/pics/.ssh/authorized_keys, line 1

Sep  5 15:35:08 1n6-213 sshd[29875]: Found matching DSA key:
##:##:##:##:##:##:##:##:##:##:##.##:##:##:##:##

Sep  5 15:35:08 1n6-213 sshd[29875]: debug1: restore_uid: 0/0

Sep  5 15:35:08 1n6-213 sshd[29875]: debug1: ssh_dss_verify: signature
correct

Sep  5 15:35:08 1n6-213 sshd[29875]: Accepted publickey for pics from 82.10
90.195 port 1514 ssh2

Sep  5 15:35:08 1n6-213 sshd[29875]: debug1: monitor_child_preauth: pics has
been authenticated by privileged process

Sep  5 15:35:08 1n6-213 sshd[30463]: debug1: permanently_set_uid: 518/519

Sep  5 15:35:08 1n6-213 sshd[30463]: debug1: Entering interactive session
for SSH2.

Sep  5 15:35:08 1n6-213 sshd[30463]: debug1: server_init_dispatch_20

Sep  5 15:35:08 1n6-213 sshd[30463]: debug1: server_input_channel_open:
ctype session rchan 256 win 16384 max 16384

Sep  5 15:35:08 1n6-213 sshd[30463]: debug1: input_session_request

Sep  5 15:35:08 1n6-213 sshd[30463]: debug1: channel 0: new [server-session]

Sep  5 15:35:08 1n6-213 sshd[30463]: debug1: session_new: init

Sep  5 15:35:08 1n6-213 sshd[30463]: debug1: session_new: session 0

Sep  5 15:35:08 1n6-213 sshd[30463]: debug1: session_open: channel 0

Sep  5 15:35:08 1n6-213 sshd[30463]: debug1: session_open: session 0: link
with channel 0

Sep  5 15:35:08 1n6-213 sshd[30463]: debug1: server_input_channel_open:
confirm session

Sep  5 15:35:09 1n6-213 sshd[30463]: debug1: server_input_channel_req:
channel 0 request subsystem reply 1

Sep  5 15:35:09 1n6-213 sshd[30463]: debug1: session_by_channel: session 0
channel 0

Sep  5 15:35:09 1n6-213 sshd[30463]: debug1: session_input_channel_req:
session 0 req subsystem

Sep  5 15:35:09 1n6-213 sshd[30463]: subsystem request for sftp

Sep  5 15:35:09 1n6-213 sshd[30463]: debug1: subsystem: exec()
/usr/local/libexec/sftp-server

Sep  5 19:35:09 1n6-213 [30466]: running: /usr/local/libexec/sftp-server
(username: pics(518), IP/port: 82.10.90.195 1514 22)

Sep  5 19:35:09 1n6-213 [30466]: failed: /usr/local/libexec/sftp-server with
error No such file or directory(2) (username: pics(518), IP/port: 82.10.90
195 1514 22)

Sep  5 15:35:09 1n6-213 sshd[30463]: debug1: Received SIGCHLD.

Sep  5 15:35:09 1n6-213 sshd[30463]: debug1: session_by_pid: pid 30466

Sep  5 15:35:09 1n6-213 sshd[30463]: debug1: session_exit_message: session 0
channel 0 pid 30466

Sep  5 15:35:09 1n6-213 sshd[30463]: debug1: session_exit_message: release
channel 0

Sep  5 15:35:09 1n6-213 sshd[30463]: debug1: session_close: session 0 pid
30466

Sep  5 15:35:09 1n6-213 sshd[30463]: debug1: channel 0: free: server-session
 nchannels 1

Sep  5 15:35:09 1n6-213 sshd[30463]: Connection closed by 82.10.90.195

Sep  5 15:35:09 1n6-213 sshd[30463]: debug1: do_cleanup

Sep  5 15:35:09 1n6-213 sshd[30463]: Closing connection to 82.10.90.195



Also note that the user pics does exist also in the following passwd file.
btw, why do we need to have this here as well as using the normal
/etc/passwd file?



[/home/scponly/etc]# cat passwd

pics:x:518:519::/var/www/html/mortalis/pics:/usr/local/sbin/scponlyc

scponly:x:531:532::/home/scponly:/usr/local/sbin/scponlyc





Many thanks for any light someone can throw on this matter,



Nick P-R



More information about the scponly mailing list