I have a directory on my server to which multiple users copy their data using rsync. All users use the options
-a -h -v. All users are in the same group used for this directory. All users mount the share via NFS and use rsync in "local mode".
While syncing the output of rsync shows several errors:
rsync: failed to set permissions on <path>: Operation not permitted (1)
which happens on those files the user which executes rsync is not the owner. This behaviour is correct, since only the owner should change permissons. I want to prevent the error from being posted to the log since it is very hard to detect "real" errors in the sync. How can I prevent rsync from setting permissions on files the executing user is no the owner?
This question is similar to this: Setting permissions with rsync only if the file is owned by the user althoug i do not use
--chmod option and this problem only applies to existing files.
The fact that this relies on the owner is my interpretation. All files which show this error are owned by someone else. Additionally, this user does not exist on my machine. So, when I inspect the directory via
ls -al, I only see the UID, not the username. May this be an issue? The UIDs are identical on the server an all clients.
Edit 2: Added info about local mode of rsync