Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd February 2007, 19:45
adrenalinic adrenalinic is offline
Senior Member
 
Join Date: Jan 2006
Posts: 200
Thanks: 3
Thanked 4 Times in 4 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 23rd February 2007, 16:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Does rsync have root privileges? Otherwise you'll get lots of permission denied errors.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 31st July 2009, 16:03
thavaht thavaht is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Maputo - Mozambique
Posts: 53
Thanks: 7
Thanked 2 Times in 2 Posts
Default

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

TIA

thavaht
Reply With Quote
  #4  
Old 1st August 2009, 10:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Do you run the rsync command as root or as another user?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 1st August 2009, 11:15
thavaht thavaht is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Maputo - Mozambique
Posts: 53
Thanks: 7
Thanked 2 Times in 2 Posts
Default

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).
Reply With Quote
  #6  
Old 2nd August 2009, 12:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

What's the output of
Code:
ls -la /home/ligiamabutana/
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 3rd August 2009, 07:57
thavaht thavaht is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Maputo - Mozambique
Posts: 53
Thanks: 7
Thanked 2 Times in 2 Posts
Default

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?
Reply With Quote
  #8  
Old 4th August 2009, 13:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
 
Default

You can try it with imapsync: http://www.howtoforge.com/how-to-mig...-with-imapsync
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
thavaht (4th August 2009)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 09:29
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17
Primary & secondary DNS-Server Problems: permission denied Pasco Installation/Configuration 10 21st July 2006 12:46
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 18:26
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 22:40


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


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