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

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

           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
        ReportedBy: bugzilla at
         QAContact: rsync-qa at
                CC: bugzilla at

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.


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:
    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:jdb:r--               #effective:r--
group::---              #effective:---
mask:r--    <======== NOTE MASK
# 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:jdb:r--               #effective:---
group::---              #effective:---
mask:---    <======== NOTE MASK

[ rsync is 3.0.6 on both ends ]

Configure bugmail:
------- 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