Server mode and rsyncd.conf

Glenn Eychaner geychaner at mac.com
Fri Apr 15 09:21:00 MDT 2011


On Apr 15, 2011, at 12:10 PM, Wayne Davison wrote:

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

You're absolutely right; my quote in my original post came from that part of the documentation, but I completely misunderstood it; I was trying to use daemon features with a standard server connection.  I'm going to give it another try and see if I can get my idea to work properly.

Thanks for pointing out that I'm an idiot (seriously!),
-G.
> 

--
Glenn Eychaner (geychaner at lco.cl)
Telescope Systems Programmer, Las Campanas Observatory



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


More information about the rsync mailing list