I\'m getting a confusing error from rsync and the initial things I\'m finding from web searches (as well as all the usual chmod\'ing) are not solving it:
rsync:
This happened to me on a partition of type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
, where the directories where owned by another user in a group we were both members of. The group membership was already established before login, and the whole directory structure was group-writeable. I had manually run sudo chown -R otheruser.group directory
and sudo chmod -R g+rw directory
to confirm this.
I still have no idea why it didn't work originally, but taking ownership with sudo chown -R myuser.group directory
fixed it. Perhaps SELinux-related?
The issue is probably due to /foo/bar not being owned by the writing process on a remote darwin (OS X) system. A solution to the issue is to set adequate owner on the remote site.
Since this answer has been voted, and therefore has been hopefully useful to someone, I'm extending it to make it clearer.
The reason why this happens is that rsync is probably trying to set an arbitrary modification time (mtime) when copying files.
In order to do this darwin's system utime()
function requires that the writing process effective uid is either the same as the file uid or super user's one, see opengroup utime's page.
Check this discussion on rsync mailing list as reference.
I had the same problem. For me the solution is to delete the remote file and let rsync
create again.