2 edited tags
| link
1
source | link

Setting permissions with rsync only if the file is owned by the user

I have a server where multiple people have an user account and they rsync the same folder. To enable that, I've put all users into the same group and when rsyncing, they use --chmod=g+w.

File are correctly accessible by each user in the group, but anyone who isn't the guy who created the folders will fail to complete the rsync, because they cannot set permissions on the folder because they aren't the owner.

How would I tell rsync to not chmod things it has no ownership for?