We have recently discovered an incompatibility exists between rssh and rsync
protocol 30 (i.e. the protocol used in rsync versions later than 2.6.9.)

Before you ask, we are trying to upgrade to using rsync 3.x for performance
reasons and because it fixes some rare error conditions which can result in
data loss.

Can someone help fix rssh?

It still works if I force a --protocol=29 on my command line, but that
defeats the purpose...

rsync 3 to rsync 3:
Jan 22 15:52:38 serverwrssh rssh[8355]: setting log facility to LOG_USER
Jan 22 15:52:38 serverwrssh rssh[8355]: allowing sftp to all users
Jan 22 15:52:38 serverwrssh rssh[8355]: allowing rsync to all users
Jan 22 15:52:38 serverwrssh rssh[8355]: setting umask to 027
Jan 22 15:52:38 serverwrssh rssh[8355]: chrooting all users to
/home/restricted
Jan 22 15:52:38 serverwrssh rssh[8355]: insecure -e option in rdist command
/line!
Jan 22 15:52:38 serverwrssh rssh[8355]: user root attempted to execute
/forbidden  commands
Jan 22 15:52:38 serverwrssh rssh[8355]: command: rsync --server --sender
/-vnlLogDtprze30.16 . /somedir

rsync 3 to rsync 3 on serverwrssh with --protocol=29:
Jan 22 17:28:38 serverwrssh rssh[11306]: setting log facility to LOG_USER
Jan 22 17:28:38 serverwrssh rssh[11306]: allowing sftp to all users
Jan 22 17:28:38 serverwrssh rssh[11306]: allowing rsync to all users
Jan 22 17:28:38 serverwrssh rssh[11306]: setting umask to 027
Jan 22 17:28:38 serverwrssh rssh[11306]: chrooting all users to
/home/restricted
Jan 22 17:28:38 serverwrssh rssh[11306]: chroot cmd line:
//usr/libexec/rssh_chroot_helper 5 "rsync --server --sender -lLogDtprz .
///somedir"


-e30.16 is a new protocol negotiation option rsync uses automatically:

>From rsync's options.c:
         /* We make use of the -e option to let the server know about any
          * pre-release protocol version && our allow_inc_recurse status. */
         set_allow_inc_recurse();
#if SUBPROTOCOL_VERSION != 0
         if (protocol_version == PROTOCOL_VERSION) {
                 x += snprintf(argstr+x, sizeof argstr - x,
                               "e%d.%d%s", PROTOCOL_VERSION,
SUBPROTOCOL_VERSION,
                               allow_inc_recurse ? "i" : "");
         } else
#endif
         if (allow_inc_recurse) {
                 argstr[x++] = 'e';
                 argstr[x++] = 'i';
         }


Regards,
Rob

--
---------------------"Happiness is understanding."----------------------
Robert Hardy, B.Eng Computer Systems                  C.E.O. Webcon Inc.
rhardy <at> webcon <dot> ca    GPG Key available

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
rssh-discuss mailing list
rssh-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rssh-discuss

Reply via email to