[scponly] how do I use rsync with scponly ? - patch enclosed

Daniel Webb lists at danielwebb.us
Wed Mar 22 05:17:51 EST 2006


On Tue, Mar 21, 2006 at 01:10:16PM -0800, John Kozubik wrote:

> Here is the patch - it's not exactly what you had in mind, but it works.

I had to patch this by hand, are you sure you're using the 4.6 sources?

Once patched, I get this:

>rsync -avz --rsh="ssh -p10006" . bobo at bobo.site.com:
Password:
scponly[25409]: chrooted binary in place, will chroot()
scponly[25409]: 3 arguments in total.
scponly[25409]:         arg 0 is scponlyc
scponly[25409]:         arg 1 is -c
scponly[25409]:         arg 2 is rsync --server -vlogDtprz .
scponly[25409]: opened log at LOG_AUTHPRIV, opts 0x00000029
scponly[25409]: retrieved home directory of
"/home/sbs/store000/bobo//home/main" for user "bobo"
scponly[25409]: chrooting to dir: "/home/sbs/store000/bobo"
scponly[25409]: chdiring to dir: "/home/main"
scponly[25409]: setting uid to 1019
scponly[25409]: processing request: "rsync --server -vlogDtprz ."
scponly[25409]: first argument to rsync was permitted '--server'
scponly[25409]: option e is not permitted for use with /usr/bin/rsync (arg was
rver)(username: bobo(1019), IP/port: ::ffff:192.168.0.100 34462 10006))
scponly[25409]: requested command (/usr/bin/rsync --server -vlogDtprz .) tried
to use disallowed argument (username: bobo(1019), IP/port:
::ffff:192.168.0.100 34462 10006))
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(420)




More information about the scponly mailing list