rsync error: failed to set times on “/foo/bar”: Operation not permitted

前端 未结 9 1926
暖寄归人
暖寄归人 2021-01-29 19:27

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:          


        
9条回答
  •  爱一瞬间的悲伤
    2021-01-29 19:56

    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?

提交回复
热议问题