Server mode and rsyncd.conf
wayned at samba.org
Fri Apr 15 09:10:42 MDT 2011
On Wed, Apr 13, 2011 at 4:09 PM, Glenn Eychaner <geychaner at mac.com> wrote:
> "Rsync supports connecting to a host using a remote shell and then spawning
> a single-use "daemon" server that expects to read its config file in the
> home dir of the remote user."
You should read the manpage section "USING RSYNC-DAEMON FEATURES VIA A
REMOTE-SHELL CONNECTION". It shows you how to combine the daemon-accessing
syntax (which it sounds like you aren't using) with the -e (--rsh) option to
achieve an ssh daemon connection. If you want to force this for all ssh
access to that user, you need to look into using ssh forced commands (where
you either force the command "rsync --server --daemon .", or you force a
script that checks the $SSH_ORIGINAL_COMMAND and outputs an error if it is
not that). See also the rrsync script in the support directory that offers
a non-daemon way to force an incoming rsync into read-only mode (using a
forced "rrsync" command).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rsync