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

Discussion in 'HOWTO-Related Questions' started by adrenalinic, Feb 22, 2007.

  1. adrenalinic

    adrenalinic New Member HowtoForge Supporter

    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:
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

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

    thavaht New Member

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

    TIA

    thavaht
     
  4. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

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

    thavaht New Member

    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,
    i get several lines like This,
     
  6. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What's the output of
    Code:
    ls -la /home/ligiamabutana/
    ?
     
  7. thavaht

    thavaht New Member

    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?
     
  8. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

Share This Page