Server mode and rsyncd.conf

Wayne Davison 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).

..wayne..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20110415/b611811a/attachment.html>


More information about the rsync mailing list