DO NOT REPLY [Bug 5190] New: rsyncd can't unlink dir structure when only the group has write permission

samba-bugs at samba.org samba-bugs at samba.org
Sun Jan 13 02:43:50 GMT 2008


https://bugzilla.samba.org/show_bug.cgi?id=5190

           Summary: rsyncd can't unlink dir structure when only the group
                    has write permission
           Product: rsync
           Version: 2.6.9
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: thefirstofall at gmail.com
         QAContact: rsync-qa at samba.org


The command: rsync -va --delete-after --delete-excluded -F --password-file=...
--chmod=u=rX,g=rwX,o-rwx /home/cassus/ rsync://cassusbackup@kitty/cassusbackup/

The structure on the server is: .../0/qwe/ewq
dr-xrwx--- 163 cassus backup 12288 2008-01-13 03:37 0
-r--rw---- 1 cassus backup 0 2008-01-13 03:20 ewq
dr-xrwx---  2 cassus backup 4096 2008-01-13 03:20 qwe

the "0" folder is the module root.

interesting part of output:
rsync: delete_file: unlink "/qwe/ewq" (in cassusbackup) failed: Permission
denied (13)
...
rsync error: some files could not be transferred (code 23) at main.c(977)
[sender=2.6.9]

So rsyncd couldn't delete the ewq file from the qwe dir. However, putting new
files into that directory works flawlessly. Also if only the ewq file was
deleted, so the qwe dir is not to be deleted by the sync, all works. The
problem onnly occures when rsync needs to delete a whole hierarchy.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list