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: wa...@opencoder.net
          Reporter: dines...@nokia.com
        QA Contact: rsync...@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@mn-0:/root]
# setfacl -m "g:wheel:rw-" /root/test.txt
[root@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@mn-0:/root]
# rsync /tmp/dummy /root/test.txt
[root@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@mn-0:/root]
#

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


[root@mn-0:/root]
# setfacl -m "g:wheel:rw-" /root/test.txt
[root@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@mn-0:/root]
# rsync --no-A /tmp/dummy /root/test.txt
[root@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@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@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.

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to