I am trying to backup some samba shares on computera to computerb all accounts on computera match computerb passwords and groups The rsyncd.conf file is as follow [rsync] uid = root gid = root max connections = 10 syslog facility = local5 pid file = /var/run/rsyncd.pid auth users = root secrest file = /etc/.rs_sec [backupshares] path = /home/sharedfolders the /etc/.rs_sec file is root:therootpassword The folders within sharedfolders are 770 and so are the files. I am using those permisions to control who has access to them via samba. on computer b I am running and getting this [root@eagle2 ~]# rsync -avvvvz --recursive --password-file /etc/.rs_pass root@199.235.186.8::backupshares /home/centralbackup opening tcp connection to 199.235.186.8 port 873 opening connection using --server --sender -vvvvlogDtprz . backupshares (Client) Protocol versions: remote=28, negotiated=28 receiving file list ... recv_file_name(.) recv_file_name(folder1) rsync: opendir "/fodler1" (in backupshares) failed: Permission denied (13) recv_file_name(folder2) rsync: opendir "/folder2" (in backupshares) failed: Permission denied (13) recv_file_name(folder3) rsync: opendir "/folder3" (in backupshares) failed: Permission denied (13) recv_file_name(folder4) ?and so on and so forth all the way down If I create a folder with contents? with 777 I can back them up. But I am confused since I thought I was connecting as the root user? The .rs_pass file only contains the root password. Any thoughts as to where I am going wrong? Vincent Yonemitsu Information Technology Services (905)639-3611 ext 153 yonemitsuv@bpl.on.ca -------------- next part -------------- HTML attachment scrubbed and removed
On Sat, May 07, 2005 at 12:33:03PM -0400, Vincent Yonemitsu wrote:> [rsync] > uid = root > gid = rootThis means that only the rsync module is running as root, and thus your backupshares module is running as the default "nobody". Get rid of the "[rsync]" line in front of your global options, and try again.> secrest file = /etc/.rs_secFYI, that's mispelled. ..wayne..