[scponly] sftp works but scp doesn't... any idea ?

YLB ylebihan at gmail.com
Sun Feb 19 18:53:04 EST 2006


Hi ! :) (and thank you very much for your answer ! :)

2006/2/17, Paul.Hyder at noaa.gov <Paul.Hyder at noaa.gov>:
> Time to change the value in the debuglevel file to 1 to
> enable additional debug information to the syslog and
> see what it indicates.

Well, it's done now...

> The linux scp failure sounds a bit like a jail configuration
> issue.

A part of the problem was this... I solved it (in fact, my shell
script for accounts creation failed).
But it doesn't run yet... WinSCP still answers : "Command 'groups ;
echo "WinSCP: this is end-of-file:$status"' failed with bad result
''."
And nothing more.

ls -lad is running well, now. But "groups" doesn't !

The most interesting is making a su from root (from the server itself) :

[root at server root]# su testuser
groups
WinSCP: this is end-of-file:0
groups ; echo "WinSCP: this is end-of-file:$status"
testuser
WinSCP: this is end-of-file:0

When I do the same thing than WinSCP, the server answers correctly.
But when doing the same thing from the WinSCP console (using scp), I
get this :

/testuser$ groups
/testuser$ groups ; echo "WinSCP: this is end-of-file:$status"

Nothing more ! :(
[and I'm unable to download/upload files using scp : I get an error
like "No way to start scp transfer. Please check that scp is well
installed on the server and the path is well specified in PATH
variable. [...] Command failed with error code 255."
Whereas : scp is in /usr/bin [in the jail] and the syslog says :

Feb 19 23:44:24 server scponly[19372]: running: /bin/pwd (username:
testuser(517), IP/port: xx.yyy.zzz.uuu 1989 22)
Feb 19 23:44:55 server scponly[19372]: running: /bin/ls -la
--full-time (username: testuser(517), IP/port: xx.yyy.zzz.uuu 1989 22)
Feb 19 23:45:00 server scponly[19372]: running: /usr/bin/scp -r -d -t
/testuser (username: testuser(517), IP/port: xx.yyy.zzz.uuu 1989 22)
Feb 19 23:45:00 server scponly[19372]: running: /bin/ls -la
--full-time (username: testuser(517), IP/port: xx.yyy.zzz.uuu 1989 22)

odd, isn't it ?...
I'm desperate... :-(

Have a nice week, everyone ! :)

Cheers,

YLB.



More information about the scponly mailing list