This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Behaviour that I don't understand


I am trying to set up rsync as a daemon under WindowsXP (professional) in 
order to be able to backup this machine on to a linux server.  I am 
struggling with an issue I don't understand.  I don't know whether it is an 
Rsync issue or a Cygwin issue, so I am asking both mailing lists.

My WindowsXP machine has ip address 192.168.0.25 and name rabbit.home

My Linux machine has ip address 192.168.0.20 and the name roo.home

Rsync has been installed as a daemon using cygrunsrv to set up a service using 
the following command 

cygrunsrv.exe -I "Rsync" -p /cygdrive/c/cygwin/bin/rsync.exe -a "--config=/cygdrive/c/cygwin/etc/rsyncd.conf --daemon --no-detach" -f "Rsync 
daemon service"

The /etc/rsyncd.conf file has the following in it 

chroot = false 
strict modes = false
hosts allow = 192.168.0.0/24 127.0.0.1

[system]
path = /cygdrive/c
comment = the complete c drive


[alan]
path = /cygdrive/c/Documents and Settings/ChandlerA
comment = Alan's specific user space

Using a cygwin bash shell on the windows machine AND from a shell prompt on my 
linux machine I can do

either (from windows machine)
rsync localhost::
or (from linux machine)
rsync rabbit::

at list out the two modules (system and alan)

HOWEVER

If I try to list the contents of either module from local host (thus)

rsync localhost::system

it works, but if I list the contents via

rsync rabbit::system
(either remotely or locally)

then I get 

@ERROR: access denied to system from roo.home (192.168.0.20)
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(420)

I have tried playing with the hosts allow parameter.  The ONLY form (including 
removing the hosts allow line altogether) that I can make work is

hosts allow = *

If I do that it works

Why is it that this form of hosts allow is needed.  The manual says that if 
the hosts allow is not present it should allow all hosts - but it doesn't 
seem to.

-- 
Alan Chandler
http://www.chandlerfamily.org.uk

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]