Permissions errors with rsync

An rsync error message of “rsync: failed to set permissions on “/path/to/some/file”: Operation not permitted (1)” occurs when the user you’re logging into the machine with tries to change permissions on a file owned by another user.

To fix, change the remote file’s ownership to the user you log in via rsync with.