samba-bugs@samba.org
2008-Jan-13 02:43 UTC
DO NOT REPLY [Bug 5190] New: rsyncd can't unlink dir structure when only the group has write permission
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@samba.org
ReportedBy: thefirstofall@gmail.com
QAContact: rsync-qa@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.
samba-bugs@samba.org
2008-Jan-19 17:45 UTC
DO NOT REPLY [Bug 5190] rsyncd can't unlink dir structure when only the group has write permission
https://bugzilla.samba.org/show_bug.cgi?id=5190 ------- Comment #1 from wayned@samba.org 2008-01-19 11:45 CST ------- Created an attachment (id=3115) --> (https://bugzilla.samba.org/attachment.cgi?id=3115&action=view) Force user-write on files before deltion. Here's one way to fix the problem. Am considering if I think this needs further refinement. -- 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.
samba-bugs@samba.org
2008-Feb-04 20:45 UTC
DO NOT REPLY [Bug 5190] rsyncd can't unlink dir structure when only the group has write permission
https://bugzilla.samba.org/show_bug.cgi?id=5190
wayned@samba.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Comment #2 from wayned@samba.org 2008-02-04 14:46 CST -------
The latest dev source has an optimized version of the proposed patch, which
fixes this problem.
--
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.