problems permision owner root

Wayne Davison wayned at
Fri Jan 6 18:44:39 GMT 2006

On Fri, Jan 06, 2006 at 03:17:41PM -0300, "Campa?a, Jairo Fabricio" wrote:
> Hello I have directory /rsyncprob/config/pref  owner root
> rsync: send_files failed to open
> "/rsyncprob/config/squirrelmail/prefs/admin2 at":
> Permission denied (13) 

You'll note that (1) those directories don't match (one contains the
squirrelmail subdir, and one doesn't).  You'll also note that rsync
isn't complaining about a directory, it is complaining about a file,
so it is the file inside that squirrelmail/prefs directory that doesn't
have the necessary read permissions for the datasync user to read it.

One solution is to run the rsync command locally as root, even though it
still contacts the remote host using the datasync user.  This will let
you read all the local files, while still not requiring remote root
logins (and it is easy to setup an ssh key for root that lets it auto-
authorize into a remote host as user datasync).  If that does not work
out for you for some reason, you'll need to make all the files readable
by user datasync somehow (perhaps by adding extra groups to the datasync
user and/or changing the group-ownership/permissions of the affected

Keep in mind that this is not an rsync problem, this is a normal access-
permissions problem that affects all programs running on the system.


More information about the rsync mailing list