rsync error
am 04.04.2008 13:13:42 von Kaushal Shriyan
hi
I am using http://pastebin.com/d4b062d28 for rsync from src host to
dest host
the roots cron entry is "02 4 * * * su sms /usr/local/bin/
testrsync_mysql.sh"
I am getting error in the logs
building file list ... rsync: pop_dir "/root" failed: Permission
denied (13)
rsync error: errors selecting input/output files, dirs (code 3) at
flist.c(1356) [sender=2.6.9]
Am i missing something
Thanks and Regards
Kaushal
Re: rsync error
am 04.04.2008 19:12:42 von Bill Marcum
On 2008-04-04, kaushal wrote:
>
>
> hi
>
> I am using http://pastebin.com/d4b062d28 for rsync from src host to
> dest host
> the roots cron entry is "02 4 * * * su sms /usr/local/bin/
> testrsync_mysql.sh"
>
> I am getting error in the logs
>
> building file list ... rsync: pop_dir "/root" failed: Permission
> denied (13)
> rsync error: errors selecting input/output files, dirs (code 3) at
> flist.c(1356) [sender=2.6.9]
>
Your script runs as user sms, who doesn't have permission to read
the /root directory.