rsync: failed to set times on “xx”: Operation not permitted (1)

Posted by on May 18, 2012 in Ubuntu | 0 comments

I use Rsync alot to make sure directories are all in sync with each other. It’s a great tool for development and distributing files over multiple machines with one command. Because it finds the differences, you don’t have to worry about whether you get the most recent version of a file copied to every machine you want it on. A single command can run an Rsync command to transfer to all the machines from a single source directory. Recently however, one of my machines was getting the two errors below.

rsync: failed to set times on “xxFileNamexx”: Operation not permitted (1)

rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1060) [sender=3.0.7]

I tried all sorts of permission combinations – 777 which you would think would make everything open to copy actually locked down the files even more giving a different permission error. The simple fix to both these errors is to make sure the owner of the files on both sides is the same. It simply goes off the name of the owner, which is odd to me because you’re not always guaranteed to have the same accounts on multiple machines, but I guess the makers of Rsync couldn’t anticipate everything.

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>