Skip to content

ACL copied by UID (not name) when running rsync as user #845

@lafrech

Description

@lafrech

Transferring files from server A to server B. User jerome exists on both servers with a different UID.

Running this as user jerome preserves ownership (by names since I'm not using --numeric-ids ), however it preserves the ACL by UID (apparently).

rsync -aAz /home/jerome/ destination:/home/jerome/

I have a folder that has ACL for both www-data and jerome. On the destination, it has

  • proper jerome:jerome ownership
  • same ACL except www-data becomes www-data (same UID) but jerome becomes 1004 (source UID, no user for this UID on destination).

Running rsync as root (on both sides, but I suspect only destination matters) gets me the proper ACL: www-data and jerome.

I expected ACL to be copied the same way when running as user jerome.

Is this a design choice? A known limitation?

Originally asked on Stack Exchange.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions