[Bug 9246] Add chroot enablement option to rsync client
samba-bugs at samba.org
samba-bugs at samba.org
Sun Oct 7 12:45:04 MDT 2012
https://bugzilla.samba.org/show_bug.cgi?id=9246
Wayne Davison <wayned at samba.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Severity|normal |enhancement
--- Comment #1 from Wayne Davison <wayned at samba.org> 2012-10-07 18:45:04 UTC ---
One potential solution:
rsync -aiv --rsync-path="chroot /chroot-path /usr/bin/rsync" src
localhost:/dest
That does require you to have a working rsync inside the chroot, while a
--chroot option would not.
If you don't have working ssh to localhost (or don't want to bother with
localhost encryption), add "-e lsh" to the command and put the "lsh" shell
script from the support dir on your path. Make sure it is a recent copy, like
this one:
http://rsync.samba.org/ftp/unpacked/rsync/support/lsh
If you want to make use of lsh's user options, you should instead put lsh into
the chroot (along with rsync) and do this:
rsync -aive "chroot /chroot-path /usr/local/bin/lsh" src user at localhost:/dest
I'm leaving this bug marked as an enhancement in case we want to add a --chroot
option that makes it do a chroot internally.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the rsync
mailing list