Would you expect --perms -M--fake-super to set the file mode to the original one?

Dimitrios Apostolou jimis at gmx.net
Thu Mar 12 17:23:07 UTC 2020

Thank you for the feedback, I'm glad to see that different people see the 
differently. As a followup question, what would you expect this to do:

rsync --perms --chmod g+rX -M--fake-super src dst

I would expect it to store the original permissions in the xattr, while
modifying the real file mode according to the chmod.

On Thursday, March 12, 2020 6:06:34 PM CET, Kevin Korb via rsync wrote:
> Permissions don't require super.  Any place where permissions can't be
> stored certainly can't handle xattrs either.  So, I wouldn't expect
> --fake-super to affect --perms at all.
> On 3/12/20 12:46 PM, Dimitrios Apostolou via rsync wrote:
>> rsync --perms -M--fake-super src dst
>> For me, this command means that rsync should save the original 
>> perms in the
>> xattr, and leave the real file mode to the umask default. 
>> Currently it also
>> modifies the real file mode, and there is no way to store something
>> different ...

More information about the rsync mailing list