HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   rsync: opendir "/var/www/web44/web" failed: Permission denied (13) (http://www.howtoforge.com/forums/showthread.php?t=10821)

adrenalinic 22nd February 2007 19:45

rsync: opendir "/var/www/web44/web" failed: Permission denied (13)
 
hello.

i have setup rsync and it now connect to master server without password, but when run a sync command:

rsync -avz --delete --exclude=**/stats --exclude=**/error --exclude=**/files/pictures -e "ssh -i /root/rsync/mirror-rsync-key" mirror345@server3.myserver.org:/var/www/ /var/www/

have this permission error:

rsync: opendir "/var/www/web7/user/web7_admin/.spamassassin" failed: Permission denied (13)
rsync: opendir "/var/www/web7/user/web7_admin/Maildir" failed: Permission denied (13)
rsync: opendir "/var/www/web7/user/web7_you/Maildir" failed: Permission denied (13)
rsync: opendir "/var/www/web7/user/web7_pippo/Maildir" failed: Permission denied (13)
rsync: opendir "/var/www/web7/user/web7_marcus/Maildir" failed: Permission denied (13)
rsync: opendir "/var/www/web8/.spamassassin" failed: Permission denied (13)
rsync: opendir "/var/www/web8/user/web8_info/Maildir" failed: Permission denied (13)

mmmmmmmmmmmm :confused:

falko 23rd February 2007 16:40

Does rsync have root privileges? Otherwise you'll get lots of permission denied errors.

thavaht 31st July 2009 16:03

How can i check if rsync has root privileges? If not, how do i change it?

TIA

thavaht

falko 1st August 2009 10:13

Do you run the rsync command as root or as another user?

thavaht 1st August 2009 11:15

I strictly followed the tutorial "Mirror Your Web Site With rsync".
So when i get to point "6 Test rsync On mirror.example.com", as root, a issued the command,
Quote:

rsync -avz --delete --exclude=**/xeros -e "ssh -i /root/rsync/mirror-rsync-key" xeros[at]mail.ests.ac.mz:/home/ /home/
i get several lines like This,
Quote:

rsync: opendir "/home/ligiamabutana/Maildir" failed: Permission denied (13).

falko 2nd August 2009 12:02

What's the output of
Code:

ls -la /home/ligiamabutana/
?

thavaht 3rd August 2009 07:57

drwxr-xr-x 190 root root 4096 2009-08-01 12:25 ..
-rw-r--r-- 1 ligiamabutana ligiamabutana 220 2009-03-05 13:08 .bash_logout
-rw-r--r-- 1 ligiamabutana ligiamabutana 414 2009-03-05 13:08 .bash_profile
-rw-r--r-- 1 ligiamabutana ligiamabutana 2227 2009-03-05 13:08 .bashrc
drwx------ 9 ligiamabutana ligiamabutana 4096 2009-03-20 11:21 Maildir


I've Maildir's always generated with such permissions. Is there a way to copy it?

falko 4th August 2009 13:16

You can try it with imapsync: http://www.howtoforge.com/how-to-mig...-with-imapsync


All times are GMT +2. The time now is 01:12.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.