[Bug 13820] New: rsync is not preserving ACLs

samba-bugs at samba.org samba-bugs at samba.org
Tue Mar 5 07:44:00 UTC 2019


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

            Bug ID: 13820
           Summary: rsync is not preserving ACLs
           Product: rsync
           Version: 3.1.3
          Hardware: x64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: core
          Assignee: wayne at opencoder.net
          Reporter: dinesh.k at nokia.com
        QA Contact: rsync-qa at samba.org

Hi,
rsync seems to be not preserving ACLs like it is mentioned in the man pages.
Here the case is that source files don't have any ACLs set, and destination
file has group ACL.
When the file is copied using rsync from another VM, destination file ACLs are
lost. Even though I am not using "-A" or by using "--no-A" ACLs are being lost.


[root at mn-0:/root]
# setfacl -m "g:wheel:rw-" /root/test.txt
[root at mn-0:/root]
# getfacl /root/test.txt
getfacl: Removing leading '/' from absolute path names
# file: root/test.txt
# owner: root
# group: root
user::rw-
group::r--
group:wheel:rw-
mask::rw-
other::r--

[root at mn-0:/root]
# rsync /tmp/dummy /root/test.txt
[root at mn-0:/root]

# getfacl /root/test.txt
getfacl: Removing leading '/' from absolute path names
# file: root/test.txt
# owner: root
# group: root
user::rw-
group::rw-
other::r--

[root at mn-0:/root]
#

=========================================


[root at mn-0:/root]
# setfacl -m "g:wheel:rw-" /root/test.txt
[root at mn-0:/root]

# getfacl /root/test.txt
getfacl: Removing leading '/' from absolute path names
# file: root/test.txt
# owner: root
# group: root
user::rw-
group::rw-
group:wheel:rw-
mask::rw-
other::r--

[root at mn-0:/root]
# rsync --no-A /tmp/dummy /root/test.txt
[root at mn-0:/root]
# getfacl /root/test.txt
getfacl: Removing leading '/' from absolute path names
# file: root/test.txt
# owner: root
# group: root
user::rw-
group::rw-
other::r--

[root at mn-0:/root]

====================================================
$ uname -a
Linux mn-0 4.14.101-1.wf29.x86_64 #1 SMP Sun Feb 17 20:39:50 EET 2019 x86_64
x86_64 x86_64 GNU/Linux
[robot at mn-0:/home/robot]

$ rsync --version
rsync  version 3.1.3  protocol version 31

-- 
You are receiving this mail because:
You are the QA Contact for the bug.



More information about the rsync mailing list