DO NOT REPLY [Bug 6694] New: rsync -A drops mask from ACL

samba-bugs at samba.org samba-bugs at samba.org
Sat Sep 5 12:16:49 MDT 2009


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

           Summary: rsync -A drops mask from ACL
           Product: rsync
           Version: 3.0.6
          Platform: Sparc
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: bugzilla at baldwin.users.panix.com
         QAContact: rsync-qa at samba.org
                CC: bugzilla at baldwin.users.panix.com


rsync is supposed to preserve ACLs with the -A option.  However, rsync 3.0.6
does not preserve ACLs, as it drops the "mask" portion of the ACL.   wayne said
on the mailing list:

Rsync was of the belief that a mask was only needed if an ACL had named
values, otherwise it tried to simplify the ACL to mask off the group
mode and dropped the mask.  I've checked in a change that makes it keep
whatever mask value is specified, so the ACLs should be identical now.
This will get released in 3.0.6.

..wayne.. 

However, this has not been done.  Example (performed as root):

# rsync --version
rsync  version 3.0.6  protocol version 30
Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
    64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
    socketpairs, hardlinks, symlinks, no IPv6, batchfiles, inplace,
    append, ACLs, no xattrs, iconv, no symtimes

rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.
# getfacl example.txt

# file: example.txt
# owner: root
# group: other
user::---
user:jdb:r--               #effective:r--
group::---              #effective:---
mask:r--    <======== NOTE MASK
other:---
# rsync -aA example.txt jdb at remote:/var/tmp
# ssh -q jdb at remote 'ls -l /var/tmp/example.txt; getfacl /var/tmp/example.txt'
----------+  1 root     other        355 Sep  5 14:07 /var/tmp/example.txt

# file: /var/tmp/example.txt
# owner: root
# group: other
user::---
user:jdb:r--               #effective:---
group::---              #effective:---
mask:---    <======== NOTE MASK
other:---

[ rsync is 3.0.6 on both ends ]


-- 
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