[scponly] rsync with scponly on CentOS

GADOT Frank Frank.Gadot at alcatel-lucent.com
Mon Oct 27 12:58:13 EDT 2008


Kaleb,

I will do that today...
I got slammed with work last week. Thanks

-----Original Message-----
From: scponly-bounces at lists.ccs.neu.edu
[mailto:scponly-bounces at lists.ccs.neu.edu] On Behalf Of Kaleb Pederson
Sent: Monday, October 27, 2008 8:09 AM
To: case22 at gmx.net
Cc: scponly at lists.ccs.neu.edu
Subject: Re: [scponly] rsync with scponly on CentOS

Thanks for the report.  I don't actually understand where this is
coming from as I get different results from Frank and you.  I'm hoping
to hear back from him today as I asked him (offlist) to try a couple
of things for me.  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.

--Kaleb

On Sun, Oct 26, 2008 at 2:20 PM,  <case22 at gmx.net> wrote:
> Hi,
> I'm having the same problem with rsync as described by Frank Gadot..
>
> I tried this on 2 different servers:
> 1. Gentoo, using the scponly 4.8 ebuild (chroot enabled)
> 2. Ubuntu 8.04.1, where I manually compiled scponly-20080308 (chroot
> disabled)
>
> Configure options were
> 1. ./configure --prefix=/usr --host=i686-pc-linux-gnu
> --mandir=/usr/share/man
> --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
> --localstatedir=/var/lib --disable-wildcards --enable-chrooted-binary
> --disable-gftp-compat --with-default-chdir=scponly --enable-scp-compat
> --disable-winscp-compat --with-sftp-server=/usr/lib/misc/sftp-server
> --enable-rsync-compat --disable-svn-compat --disable-svnserv-compat
> --build=i686-pc-linux-gnu
>
> 2.  ./configure --prefix=/usr/local/scponly --enable-chrooted-binary
> --disable-gftp-compat --enable-scp-compat --enable-rsync-compat
> --disable-svn-compat --disable-svnserv-compat --enable-winscp-compat
>
> On the client side, I tried
> 1. rsync 3.0.4 on Gentoo
> 2. rsync 3.0.3 on Debian
>
> The result, i.e. the error, was the same across the board, you can see
> the debug log below.
> When I leave out the '-v' patameters, I get only a single line with
> "getopt processing returned '?'", before it chokes on the 'e.L'.
>
> Thank you.
>
> #####
>
> # rsync -vvvv foo USER at HOST:
>
> cmd=<NULL> machine=HOST user=USER path=
> cmd[0]=ssh cmd[1]=-l cmd[2]=USER cmd[3]=HOST cmd[4]=rsync
> cmd[5]=--server cmd[6]=-vvvve.L cmd[7]=. cmd[8]=
> opening connection using: ssh -l USER HOST rsync --server -vvvve.L .
> note: iconv_open("UTF-8", "UTF-8") succeeded.
> scponly[18353]: chrooted binary in place, will chroot()
> scponly[18353]: 3 arguments in total.
> scponly[18353]:         arg 0 is scponlyc
> scponly[18353]:         arg 1 is -c
> scponly[18353]:         arg 2 is rsync --server -vvvve.L .
> scponly[18353]: opened log at LOG_AUTHPRIV, opts 0x00000029
> scponly[18353]: determined USER is "USER" from environment
> scponly[18353]: retrieved home directory of "/home/chroot//USER" for
> user "USER"
> scponly[18353]: Setting homedir to /USER
> scponly[18353]: chrooting to dir: "/home/chroot"
> scponly[18353]: chdiring to dir: "/USER"
> scponly[18353]: setting uid to 2003
> scponly[18353]: processing request: "rsync --server -vvvve.L . "
> scponly[18353]: Using getopt processing for cmd /usr/bin/rsync
>  (username: USER(2003), IP/port: CLIENT-IP 46795 22)
> scponly[18353]: getopt processing returned '?' (username: USER(2003),
> IP/port: CLIENT-IP 46795 22)
> scponly[18353]: getopt processing returned '?' (username: USER(2003),
> IP/port: CLIENT-IP 46795 22)
> scponly[18353]: getopt processing returned '?' (username: USER(2003),
> IP/port: CLIENT-IP 46795 22)
> scponly[18353]: getopt processing returned '?' (username: USER(2003),
> IP/port: CLIENT-IP 46795 22)
> scponly[18353]: getopt processing returned '?' (username: USER(2003),
> IP/port: CLIENT-IP 46795 22)
> scponly[18353]: getopt processing returned 'e' (username: USER(2003),
> IP/port: CLIENT-IP 46795 22)
> scponly[18353]: option 'e' or a related long option is not permitted
for
> use with /usr/bin/rsync (arg was .L) (username: USER(2003), IP/port:
> CLIENT-IP 46795 22))
> scponly[18353]: requested command (/usr/bin/rsync --server -vvvve.L .)
> tried to use disallowed argument (username: USER(2003), IP/port:
> CLIENT-IP 46795 22))
> rsync: connection unexpectedly closed (0 bytes received so far)
[sender]
> _exit_cleanup(code=12, file=io.c, line=632): entered
> rsync error: error in rsync protocol data stream (code 12) at
io.c(632)
> [sender=3.0.4]
> _exit_cleanup(code=12, file=io.c, line=632): about to call exit(12)
>
>
> _______________________________________________
> scponly mailing list
> scponly at lists.ccs.neu.edu
> https://lists.ccs.neu.edu/bin/listinfo/scponly
>

_______________________________________________
scponly mailing list
scponly at lists.ccs.neu.edu
https://lists.ccs.neu.edu/bin/listinfo/scponly



More information about the scponly mailing list