Permissions problem I don't understand
Alan Chandler
alan at chandlerfamily.org.uk
Sat Nov 19 10:29:01 GMT 2005
I am try to use rsync from my windows box (under cygwin) to back up "My
Documents" on to a debian server (known on my home network as roo.home)
running rsyncd from inetd where it is run as root.
my rsyncd.conf file sets the gid and uid to user backup.backup thusly:-
syslog facility = daemon
uid = backup
gid = backup
hosts allow = 192.168.0.0/24
hosts deny = 0.0.0.0/0
timeout = 600
read only = false
[rabbit]
path = /bak/rabbit
comment = work computer (rabbit) backup area
[pooh]
...
Inside /bak/rabbit are two directories - backup and archive, both of which are
owned by backup.backup . backup dir has permissions of 770 , archive (which
seems to have been created automatically by rsync has 755 (I assume because
of a umask somewhere of 022).
As a test - I created a file (also with owner backup.backup)
/bak/rabbit/backup/My\ Documents/test.file
I run the command from the windows box as follows (excluding mail induced word
wrap)
rsync -axq --modify-window=2 --delete --exclude=Mail/ --backup
--backup-dir=/archive ~/My\ Documents/ roo.home::rabbit/backup/My\
Documents/
and get the following error message
rsync: keep_backup failed: "/backup/My Documents/test.file" (in rabbit) ->
"/archive/test.file": Permission denied (13)
rsync: stat "/archive/test.file" (in rabbit) failed: No such file or directory
(2)
(and pretty much the same thing has been logged at the server end)
WHY? - everything at the server end is user backup group backup.
--
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.
More information about the rsync
mailing list