PDA

View Full Version : rsync: opendir "/var/www/web44/web" failed: Permission denied (13)


adrenalinic
22nd February 2007, 20:45
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, 17:40
Does rsync have root privileges? Otherwise you'll get lots of permission denied errors.

thavaht
31st July 2009, 17:03
How can i check if rsync has root privileges? If not, how do i change it?

TIA

thavaht

falko
1st August 2009, 11:13
Do you run the rsync command as root or as another user?

thavaht
1st August 2009, 12: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,
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,
rsync: opendir "/home/ligiamabutana/Maildir" failed: Permission denied (13).

falko
2nd August 2009, 13:02
What's the output of ls -la /home/ligiamabutana/?

thavaht
3rd August 2009, 08: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, 14:16
You can try it with imapsync: http://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapsync