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

           Summary: --acls does not honor --numeric-ids if UIDs do not
                    match
           Product: rsync
           Version: 3.0.7
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
        AssignedTo: way...@samba.org
        ReportedBy: rs...@sanitarium.net
         QAContact: rsync...@samba.org


If the same user name exists on two systems but with different numeric UIDs
rsync normally does a translation.  Using --numeric-ids is supposed to disable
that translation feature (which it does for file ownership).  However, it does
not for ACLs.

Here is an example of an directory with an ACL transferred between 2 systems
that have a qmaild user with different UIDs.

---------------------------------------------------------------

localbox# rsync --archive --acls --itemize-changes --numeric-ids
remotebox:/service ./
.d.......a. service/
localbox# ssh remotebox getfacl /service
getfacl: Removing leading '/' from absolute path names
# file: service
# owner: root
# group: service
user::rwx
user:nagios:r-x
user:qmaild:r-x
user:nobody:r-x
group::r-x
mask::r-x
other::---

localbox# ssh remotebox id qmaild
uid=380(qmaild) gid=200(nofiles) groups=200(nofiles),300(service)
localbox# getfacl service
# file: service
# owner: root
# group: 300
user::rwx
user:qmaild:r-x
user:320:r-x
user:nobody:r-x
group::r-x
mask::r-x
other::---

localbox# id qmaild
uid=201(qmaild) gid=200(nofiles) groups=200(nofiles)

------------------------------------------------------------

Both systems are running Gentoo Linux and rsync 3.0.7.  I discovered this
problem because I was using rsync to backup the server with the ACL to a backup
system that also had the qmaild user but with a different UID.  When I later
restored that backup while booted from a live CD (SystemRescueCD) it did not
have a qmaild user so the numeric value from my backup server was used rather
than the numeric value it was supposed to be.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- 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