[scponly] comandline works, winscp not
scponly at bischof.homelinux.net
scponly at bischof.homelinux.net
Tue Sep 30 10:27:49 EDT 2008
Dear all,
I've some problems with my scponlyc, which I cannot solve by myself
after some hours of trying. If I do scp via commandline, everything
work's fine:
scp testfile rolli at bischof.homelinux.net:
Sep 30 14:54:32 linux sshd[18378]: Accepted password for rolli from
192.168.0.11 port 33547 ssh2
Sep 30 14:54:32 linux scponly[18383]: chrooted binary in place, will
chroot()
Sep 30 14:54:32 linux scponly[18383]: 3 arguments in total.
Sep 30 14:54:32 linux scponly[18383]: ^Iarg 0 is scponlyc
Sep 30 14:54:32 linux scponly[18383]: ^Iarg 1 is -c
Sep 30 14:54:32 linux scponly[18383]: ^Iarg 2 is scp -t .
Sep 30 14:54:32 linux scponly[18383]: opened log at LOG_AUTHPRIV, opts
0x00000029
Sep 30 14:54:32 linux scponly[18383]: retrieved home directory of
"/opt/mp3/sync//musiktausch" for user "rolli"
Sep 30 14:54:32 linux scponly[18383]: chrooting to dir: "/opt/mp3/sync"
Sep 30 14:54:32 linux scponly[18383]: chdiring to dir: "/musiktausch"
Sep 30 14:54:32 linux scponly[18383]: chdiring to dir: "/musiktausch"
Sep 30 14:54:32 linux scponly[18383]: setting uid to 1005
Sep 30 14:54:32 linux scponly[18383]: processing request: "scp -t ."
Sep 30 14:54:32 linux scponly[18383]: running: /usr/bin/scp -t .
(username: rolli(1005), IP/port: 192.168.0.11 33547 22)
But if I use WinSCP, which I need for some friend of mine, I get errors
that the user is not allowed to execute /bin/pwd and such:
WinSCP
Sep 30 14:56:17 linux sshd[18396]: Accepted password for rolli from
127.0.0.1 port 38632 ssh2
Sep 30 14:56:17 linux scponly[18402]: chrooted binary in place, will
chroot()
Sep 30 14:56:17 linux scponly[18402]: 1 arguments in total.
Sep 30 14:56:17 linux scponly[18402]: ^Iarg 0 is -scponlyc
Sep 30 14:56:17 linux scponly[18402]: opened log at LOG_AUTHPRIV, opts
0x00000029
Sep 30 14:56:17 linux scponly[18402]: retrieved home directory of
"/opt/mp3/sync//musiktausch" for user "rolli"
Sep 30 14:56:17 linux scponly[18402]: chrooting to dir: "/opt/mp3/sync"
Sep 30 14:56:17 linux scponly[18402]: chdiring to dir: "/musiktausch"
Sep 30 14:56:17 linux scponly[18402]: chdiring to dir: "/musiktausch"
Sep 30 14:56:17 linux scponly[18402]: setting uid to 1005
Sep 30 14:56:17 linux scponly[18402]: entering WinSCP compatibility mode
[username: rolli(1005), IP/port: 127.0.0.1 38632 22]
Sep 30 14:56:20 linux scponly[18402]: processing request: "groups"
Sep 30 14:56:20 linux scponly[18402]: running: /usr/bin/groups
(username: rolli(1005), IP/port: 127.0.0.1 38632 22)
Sep 30 14:56:26 linux scponly[18402]: processing request: "pwd"
Sep 30 14:56:26 linux scponly[18402]: running: /bin/pwd (username:
rolli(1005), IP/port: 127.0.0.1 38632 22)
Sep 30 14:56:28 linux scponly[18402]: processing request: "pwd"
Sep 30 14:56:28 linux scponly[18402]: running: /bin/pwd (username:
rolli(1005), IP/port: 127.0.0.1 38632 22)
Any clues?
Cheers,
Frisco
--
Personal weblog and more: http://bischof.homelinux.net
Stilblüten aus Schreiben von Versicherungsnehmern:
Unsere Autos prallten genau in dem Augenblick zusammen, als sie sich
begegneten.
More information about the scponly
mailing list