[scponly] rsync-3.X with scponly was: rsync with scponly on CentOS
case22 at gmx.net
case22 at gmx.net
Tue Oct 28 07:14:41 EDT 2008
Hi,
thank you for your reply.
On 28.10.2008 07:45, Kaleb Pederson wrote:
> On Monday 27 October 2008 09:09:22 am Kaleb Pederson wrote:
>> I'm running Gentoo at home, so I'll try it and
>> compare to my CVS checkout, which is apparently more different than I
>> remember.
>
> I installed 4.8 and it does exhibit the problems described. However, our
> current CVS version works fine for me, although Frank reported that it didn't
> work for him -- Frank, can you double check?
>
> Case22, can you try the CVS version and let me know if it works for you?
Yes, I can use rsync with the CVS version, I've attached the debug log
at the bottom.
But there is one problem: I can't use wildcards when downloading from
the scponly-account via rsync, even though scponly is built with
--enable-wildcards.
rsync version on both ends is:
rsync version 3.0.3 protocol version 30
Copyright (C) 1996-2008 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, no IPv6, batchfiles, inplace,
append, ACLs, no xattrs, iconv, symtimes
I'm not sure whether this is a known problem, or if I'm doing something
wrong, here is the log:
# rsync -vvvv USER at HOST:foo* .
cmd=<NULL> machine=HOST user=USER path=foo*
cmd[0]=ssh cmd[1]=-l cmd[2]=USER cmd[3]=HOST cmd[4]=rsync
cmd[5]=--server cmd[6]=--sender cmd[7]=-vvvve.L cmd[8]=. cmd[9]=foo*
opening connection using: ssh -l USER HOST rsync --server --sender
-vvvve.L . "foo*"
note: iconv_open("UTF-8", "UTF-8") succeeded.
scponly[26174]: chrooted binary in place, will chroot()
scponly[26174]: 3 arguments in total.
scponly[26174]: arg 0 is scponlyc
scponly[26174]: arg 1 is -c
scponly[26174]: arg 2 is rsync --server --sender -vvvve.L . foo*
scponly[26174]: opened log at LOG_AUTHPRIV, opts 0x00000029
scponly[26174]: determined USER is "USER" from environment
scponly[26174]: retrieved home directory of "/home/chroot//USER" for
user "USER"
scponly[26174]: Setting homedir to /USER
scponly[26174]: chrooting to dir: "/home/chroot"
scponly[26174]: chdiring to dir: "/USER"
scponly[26174]: setting uid to 2003
scponly[26174]: processing request: "rsync --server --sender -vvvve.L .
foo*"
scponly[26174]: Using getopt processing for cmd /usr/bin/rsync
(username: USER(2003), IP/port: CLIENT-IP 41359 22)
scponly[26174]: getopt processing returned 's' (username: USER(2003),
IP/port: CLIENT-IP 41359 22)
scponly[26174]: rsync_flags are now set to: 1
scponly[26174]: getopt processing returned '?' (username: USER(2003),
IP/port: CLIENT-IP 41359 22)
scponly[26174]: getopt processing returned '?' (username: USER(2003),
IP/port: CLIENT-IP 41359 22)
scponly[26174]: getopt processing returned '?' (username: USER(2003),
IP/port: CLIENT-IP 41359 22)
scponly[26174]: getopt processing returned '?' (username: USER(2003),
IP/port: CLIENT-IP 41359 22)
scponly[26174]: getopt processing returned '?' (username: USER(2003),
IP/port: CLIENT-IP 41359 22)
scponly[26174]: getopt processing returned 'e' (username: USER(2003),
IP/port: CLIENT-IP 41359 22)
scponly[26174]: rsync_flags are now set to: 3
scponly[26174]: running: /usr/bin/rsync --server --sender -vvvve.L .
foo* (username: USER(2003), IP/port: CLIENT-IP 41359 22)
scponly[26174]: about to exec "/usr/bin/rsync" (username: USER(2003),
IP/port: CLIENT-IP 41359 22)
(Client) Protocol versions: remote=30, negotiated=30
(Server) Protocol versions: remote=30, negotiated=30
server_sender starting pid=26174
rsync: link_stat "/USER/foo*" failed: No such file or directory (2)
received 0 names
[receiver] flist start=0, used=0, low=0, high=-1
recv_file_list done
sent 8 bytes received 10 bytes 36.00 bytes/sec
total size is 0 speedup is 0.00
client_run2 waiting on 24791
_exit_cleanup(code=23, file=main.c, line=1506): entered
rsync error: some files could not be transferred (code 23) at
main.c(1506) [receiver=3.0.3]
_exit_cleanup(code=23, file=main.c, line=1506): about to call exit(23)
-----------
# rsync -vvvv USER at HOST:foo1.sh .
cmd=<NULL> machine=HOST user=USER path=foo1.sh
cmd[0]=ssh cmd[1]=-l cmd[2]=USER cmd[3]=HOST cmd[4]=rsync
cmd[5]=--server cmd[6]=--sender cmd[7]=-vvvve.L cmd[8]=. cmd[9]=foo1.sh
opening connection using: ssh -l USER HOST rsync --server --sender
-vvvve.L . foo1.sh
note: iconv_open("UTF-8", "UTF-8") succeeded.
scponly[26236]: chrooted binary in place, will chroot()
scponly[26236]: 3 arguments in total.
scponly[26236]: arg 0 is scponlyc
scponly[26236]: arg 1 is -c
scponly[26236]: arg 2 is rsync --server --sender -vvvve.L . foo1.sh
scponly[26236]: opened log at LOG_AUTHPRIV, opts 0x00000029
scponly[26236]: determined USER is "USER" from environment
scponly[26236]: retrieved home directory of "/home/chroot//USER" for
user "USER"
scponly[26236]: Setting homedir to /USER
scponly[26236]: chrooting to dir: "/home/chroot"
scponly[26236]: chdiring to dir: "/USER"
scponly[26236]: setting uid to 2003
scponly[26236]: processing request: "rsync --server --sender -vvvve.L .
foo1.sh"
scponly[26236]: Using getopt processing for cmd /usr/bin/rsync
(username: USER(2003), IP/port: CLIENT-IP 41360 22)
scponly[26236]: getopt processing returned 's' (username: USER(2003),
IP/port: CLIENT-IP 41360 22)
scponly[26236]: rsync_flags are now set to: 1
scponly[26236]: getopt processing returned '?' (username: USER(2003),
IP/port: CLIENT-IP 41360 22)
scponly[26236]: getopt processing returned '?' (username: USER(2003),
IP/port: CLIENT-IP 41360 22)
scponly[26236]: getopt processing returned '?' (username: USER(2003),
IP/port: CLIENT-IP 41360 22)
scponly[26236]: getopt processing returned '?' (username: USER(2003),
IP/port: CLIENT-IP 41360 22)
scponly[26236]: getopt processing returned '?' (username: USER(2003),
IP/port: CLIENT-IP 41360 22)
scponly[26236]: getopt processing returned 'e' (username: USER(2003),
IP/port: CLIENT-IP 41360 22)
scponly[26236]: rsync_flags are now set to: 3
scponly[26236]: running: /usr/bin/rsync --server --sender -vvvve.L .
foo1.sh (username: USER(2003), IP/port: CLIENT-IP 41360 22)
scponly[26236]: about to exec "/usr/bin/rsync" (username: USER(2003),
IP/port: CLIENT-IP 41360 22)
More information about the scponly
mailing list