[Bug 8020] New: --acls does not honor --numeric-ids if UIDs do not match
samba-bugs at samba.org
samba-bugs at samba.org
Wed Mar 16 23:41:37 MDT 2011
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: wayned at samba.org
ReportedBy: rsync at sanitarium.net
QAContact: rsync-qa at 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.
More information about the rsync
mailing list