rsync errors

Matt McCutchen matt at mattmccutchen.net
Fri Mar 28 15:07:44 GMT 2008


On Thu, 2008-03-27 at 19:56 +0530, Kaushal Shriyan wrote: 
> I am still getting the below error

> rsync: failed to set permissions on "/var/lib/mysql": Operation not
> permitted (1)
> [...]

User "sms" can't set the permissions of files owned by "mysql"; there's
no way to change this policy using ACLs.  I think it would make the most
sense to stop trying to preserve permissions, since in any event, new
destination files need to take on the default permissions you have
established (rather than the source permissions) in order for "mysql" to
be able to use them.  Either pass --no-p or replace -a with the subset
of options you do want (perhaps -rlt), and then pass --chmod=ugo=rwX to
allow the permissions of new files to increase to the defaults.

Matt



More information about the rsync mailing list