rsyncd.conf

LuKreme kremels at kreme.com
Sun Mar 30 10:01:03 PDT 2008


I have the following in rsyncd.conf (on 'server'):

[backup]
	path = /backup/
	comment = Backup
	readonly = no
	auth users = root
	secrets file = /usr/local/etc/rsyncd.secrets

I tried to connect to it from www2

rsync -av --password-file=/var/rsync.passwd --link-dest=server::backup/ 
www2 / server::backup/www2.daily.0

and get the following error:

building file list ... done
rsync: mkdir "www2.daily.0" (in backup) failed: Permission denied (13)
rsync error: error in file IO (code 11) at main.c(529) [receiver=2.6.9]
rsync: connection unexpectedly closed (4 bytes received so far) [sender]

Since the auth user for the rsync is 'root' why am I getting a  
permission failure?

And even though the current www2 folder is owned by root (in fact, has  
the same permissions as /backup), I AM able to run the following  
command with no error:

rsync -av --password-file=/var/rsync.passwd / server::backup/www2

$ ls -lsa /backup/
   2 drwxr-xr-x  13 root  wheel        512 Mar 30 10:33 .
   2 drwxr-xr-x  24 root  wheel       1024 Feb 16 13:58 ..
   2 drwxr-xr-x  21 root  wheel        512 Jun 10  2007 www2

-- 
Well I've seen the Heart of Darkness/Read the writing on the wall/and  
the voice out in the desert/Was the voice out in the hall




More information about the MacOSX-admin mailing list