FAQ: Moving files between two machines using rsync

Mauricio raub at afn.org
Tue Feb 17 10:50:11 GMT 2004


At 05:26 +0000 2/17/04, Andrew Liles wrote:
>check /var/log/messages

	All it has is stuff related to my Win2K machine (argh!):

Feb 17 05:39:23 katri dhcpd: DHCPINFORM from 10.0.0.4 via le0
Feb 17 05:39:23 katri dhcpd: DHCPACK to 10.0.0.4

>check you have the correct file permissions on the daemon secrets 
>file and local secret file; both should not be world readable

	That was it!

katri# ls -l /etc/rsyncd.*
-rw-r--r--  1 root  wheel  250 Feb 16 10:50 /etc/rsyncd.conf
-rw-r--r--  1 root  wheel   14 Feb 16 10:50 /etc/rsyncd.secrets
katri# chmod go-r /etc/rsyncd.secrets
katri# ls -l /etc/rsyncd.*
-rw-r--r--  1 root  wheel  250 Feb 16 10:50 /etc/rsyncd.conf
-rw-------  1 root  wheel   14 Feb 16 10:50 /etc/rsyncd.secrets
katri#

the daemon secrets file was world readable.  Once that was corrected, 
I had no problem moving the file around:

<local machine.  And, yes, the file I am moving around *is* the 
script I wrote to move it around =) >
raub at kushana-3>./sync-me
NetBSD 1.6.1 (GENERIC) #0: Tue Apr 8 21:00:42 UTC 2003

Welcome to NetBSD!


nogo
wrote 141 bytes  read 174 bytes  90.00 bytes/sec
total size is 9  speedup is 0.30
raub at kushana-4>

<server machine>
katri# ls -l /tmp/
total 1
-rw-------  1 nobody  wheel  9 Feb 17 05:43 nogo
katri#

Thanks!  Now, in my next installment is to see if I can keep/set the 
owner anyway I feel doign so. =)


More information about the rsync mailing list