Solved

Using Rsyncd with Backuppc gives permission errors, why?

Posted on 2011-03-08
1
2,257 Views
Last Modified: 2013-12-01
I'm setting up Backuppc on Ubuntu 10.10. I installed rsyncd, configured backuppc and ran my first full backup. Mostly everything worked, but a lot of files did not get copied. When I look at the backup errors, I see a lot of:

Remote[1]: rsync: opendir "/home/jean/.evolution/memos/local" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.evolution/tasks/local" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.evolution/cache" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.evolution/calendar/local" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.evolution/mail/spooldir" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.evolution/mail/pop" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.evolution/mail/imap" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.evolution/signatures" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.gconfd" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.cache" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.gconf" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.mozilla" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.kde" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.dbus" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.local/share/gvfs-metadata" (in backup) failed: Permission denied (13)
Remote[1]: rsync: opendir "/home/jean/.gnome2" (in backup) failed: Permission denied (13)

rsync is running as root, so I don't understand why it can't read these files? At least, I'm pretty sure it's running
as root, I followed the instructions at https://help.ubuntu.com/community/rsync to set it up. As a test, I
attempted to rsync manually, and while it was prompting for the password, I did a 'ps -ef|grep rsy' in another
terminal. It showed 'root' as the owner of the 'rsync --daemon' process.

One possible clue, when I spot checked some of the files that were skipped the permissions for group & other were empty, ie, :

jean@Ubuntu:~/.evolution$ ls -l memos

drwx------ 3 jean jean 4096 2008-11-27 20:58 local

I'm stumped, any help appreciated.

Thanks.

Jean
0
Comment
Question by:JPNeron
1 Comment
 

Accepted Solution

by:
JPNeron earned 0 total points
ID: 35083964
I think I found the problem. In the rsyncd.conf file, I specified user nobody, group nobody (as per the setup instructions). I noticed when the backup was running that the rsync process was owned by 'nobody', not root as I saw earlier. I think during the password stage, rsync is run by root, but once the password is accepted, it's reinvoked as the user specified in rsyncd.conf. So, it looked like it was being run by root, but that was only during negotiation. Once I changed  the user id in rsyncd.conf to 'root', the problem went away.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now