Hello I have directory /rsyncprob/config/pref owner root Own is: drwxr-xr-x 3 root datasync 12288 Jan 5 18:08 prefs I execute: su - datasync #datasync> rsync -arvz --update /rsyncprob/ datasync@172.31.199.203:/rsyncprob/ <mailto:datasync@172.31.199.203:/rsyncprob/> Obtaing error: rsync: send_files failed to open "/rsyncprob/config/squirrelmail/prefs/admin2@dom2.t-empresas.com.ar.pref": Permission denied (13) ..... ent 12313 bytes received 2600 bytes 29826.00 bytes/sec total size is 163598 speedup is 10.97 rsync error: some files could not be transferred (code 23) at main.c(702) Change permission chown -R datasync:datasync prefs Own is: drwxr-xr-x 3 datasync datasync 12288 Jan 5 18:08 prefs Su - datasync #datasync> rsync -arvz --update /rsyncprob/ datasync@172.31.199.203:/rsyncprob/ <mailto:datasync@172.31.199.203:/rsyncprob/> ITS WORK I Need exucte RSYNC whit user datasync / file OWNER ROOT. -------------- next part -------------- HTML attachment scrubbed and removed
Hello I have directory /rsyncprob/config/pref owner root Own is: drwxr-xr-x 3 root datasync 12288 Jan 5 18:08 prefs I execute: su - datasync #datasync> rsync -arvz --update /rsyncprob/ datasync@172.31.199.203:/rsyncprob/ <mailto:datasync@172.31.199.203:/rsyncprob/> Obtaing error: rsync: send_files failed to open "/rsyncprob/config/squirrelmail/prefs/admin2@dom2.t-empresas.com.ar.pref": Permission denied (13) ..... ent 12313 bytes received 2600 bytes 29826.00 bytes/sec total size is 163598 speedup is 10.97 rsync error: some files could not be transferred (code 23) at main.c(702) Change permission chown -R datasync:datasync prefs Own is: drwxr-xr-x 3 datasync datasync 12288 Jan 5 18:08 prefs Su - datasync #datasync> rsync -arvz --update /rsyncprob/ datasync@172.31.199.203:/rsyncprob/ <mailto:datasync@172.31.199.203:/rsyncprob/> ITS WORK I Need exucte RSYNC whit user datasync / file OWNER ROOT. -------------- next part -------------- HTML attachment scrubbed and removed
Hello I have directory /rsyncprob/config/pref owner root Own is: drwxr-xr-x 3 root datasync 12288 Jan 5 18:08 prefs I execute: su - datasync #datasync> rsync -arvz --update /rsyncprob/ datasync@172.31.199.203:/rsyncprob/ <mailto:datasync@172.31.199.203:/rsyncprob/> Obtaing error: rsync: send_files failed to open "/rsyncprob/config/squirrelmail/prefs/admin2@dom2.t-empresas.com.ar.pref": Permission denied (13) ..... ent 12313 bytes received 2600 bytes 29826.00 bytes/sec total size is 163598 speedup is 10.97 rsync error: some files could not be transferred (code 23) at main.c(702) Change permission chown -R datasync:datasync prefs Own is: drwxr-xr-x 3 datasync datasync 12288 Jan 5 18:08 prefs Su - datasync #datasync> rsync -arvz --update /rsyncprob/ datasync@172.31.199.203:/rsyncprob/ <mailto:datasync@172.31.199.203:/rsyncprob/> ITS WORK I Need exucte RSYNC whit user datasync / file OWNER ROOT. -------------- next part -------------- HTML attachment scrubbed and removed
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@dom2.t-empresas.com.ar.pref": > 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 files). 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. ..wayne..