On Tue, Apr 08, 2025 at 12:54:24PM +0100, Graham Leggett via rsync wrote: > I misunderstood the --chmod option, thinking that it specified the > permissions at the destination. What actually happens is that it > overrides the source permissions, and has a side effect of the > destination permissions being the same as the source. It looks like > it works, when metadata is lost. [...] > > What option will set the permissions on the destination side, while > not affecting the permissions being fed into --fake-super on the > source side?
If I understand correctly, I believe using --chmod without using --perms (or with --no-p) will do what you want. Typical command lines often use -a which equates to -rlptgoD (i.e. it includes -p/--perms). So you either need to not use -a and instead use the remaining combination of options explicitly, or use --no-p. See the man page, specifically the sections for --perms and -a. -- Derek Martin Principal System Software Engineer Akamai Technologies demar...@akamai.com -- 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