samba-bugs@samba.org
2006-Jun-12 00:41 UTC
DO NOT REPLY [Bug 3829] New: rsync loses access ACLs on transferred files
https://bugzilla.samba.org/show_bug.cgi?id=3829
Summary: rsync loses access ACLs on transferred files
Product: rsync
Version: 2.6.9
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: hashproduct+rsync@gmail.com
QAContact: rsync-qa@samba.org
Run the following in an empty directory, putting some username on your system
in place of $USER:
mkdir src dest
echo foo >src/file
echo barbar >dest/file
setfacl -m u:$USER:rw- dest/file
rsync -r src/ dest/
Since permissions are not being preserved, rsync loads the old permissions of
dest/file into the file list and applies them to the new dest/file. Rsync
should treat the access ACL in the same way, but it does not, so the old access
ACL of dest/file is lost. The mask permission bits are applied as group
permission bits, possibly granting access to undesired users.
If permissions but not ACLs are to be preserved, I'm not sure what rsync
should
do. Since permissions and ACLs are inseparable from a security point of view,
perhaps we should get rid of this odd case by making --perms preserve ACLs and
throwing out --acls.
--
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
2006-Oct-08 22:13 UTC
DO NOT REPLY [Bug 3829] rsync loses access ACLs on transferred files
https://bugzilla.samba.org/show_bug.cgi?id=3829
wayned@samba.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
------- Comment #1 from wayned@samba.org 2006-10-08 17:12 MST -------
It makes sense to me that if we aren't copying permissions/acls, that the
new
file should preserve the current file's permissions/acls.
It might also make sense to include ACLs in the definition of --perms in a
future rsync as long as there is a protocol-number bump that determines if we
can send the ACLs or not, and rsync outputs an error when ACLs are being
dropped (i.e. some are found, and we couldn't preserve them due to the
protocol
# being too low).
--
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
2007-Apr-28 15:13 UTC
DO NOT REPLY [Bug 3829] rsync loses access ACLs on transferred files
https://bugzilla.samba.org/show_bug.cgi?id=3829
hashproduct+rsync@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|2.6.9 |3.0.0
------- Comment #2 from hashproduct+rsync@gmail.com 2007-04-28 10:13 MST
-------
In the same way, rsync loses xattrs on recreated files. This might be the
desired behavior in a few cases; for example, an xattr indicating that a
destination file has been backed up should be lost so that the new destination
file gets backed up.
--
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 at samba.org
2010-Nov-06 18:18 UTC
DO NOT REPLY [Bug 3829] rsync loses ACLs, xattrs (when unpreserved) on recreated dest files
https://bugzilla.samba.org/show_bug.cgi?id=3829
matt at mattmccutchen.net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |atsaloli.tech at gmail.com
------- Comment #3 from matt at mattmccutchen.net 2010-11-06 13:18 CST -------
*** Bug 7773 has been marked as a duplicate of this bug. ***
--
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 at samba.org
2010-Nov-06 18:59 UTC
DO NOT REPLY [Bug 3829] rsync loses attributes (except permissions) of recreated dest files
https://bugzilla.samba.org/show_bug.cgi?id=3829
matt at mattmccutchen.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|rsync loses ACLs, xattrs |rsync loses attributes
|(when unpreserved) on |(except permissions) of
|recreated dest files |recreated dest files
------- Comment #4 from matt at mattmccutchen.net 2010-11-06 13:59 CST -------
In bug 7773, Aleksey Tsalolikhin pointed out that user and group ownership are
lost too. I'm broadening this bug to cover all attributes.
--
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.
Apparently Analagous Threads
- DO NOT REPLY [Bug 7773] New: Please add a switch to preserve ownership on the receiving side
- DO NOT REPLY [Bug 4318] New: automatic module creation with rights on server
- DO NOT REPLY [Bug 4520] New: Add the ability to specify a password on the command line
- DO NOT REPLY [Bug 3945] New: add arbitrary error reporting (with --error, perhaps)
- DO NOT REPLY [Bug 4030] New: new option: --filelimit