destination directory problems

Tony at ServaCorp.com Tony at ServaCorp.com
Mon Jul 11 04:34:09 GMT 2005


Looks like uid 1000 (whichever user that is)
does NOT have permission to write to /backup (owned by root)

Not sure about Debian, but seems like most chmod
likes a user:group syntax

If /backup is owned by root
you probably want
uid = root
gid = root
which can preserve the original owners (mostly irrelevant on Windows)

You would use a specific uid and gid if you wanted the backups owned by that
user
regardless of who owned the files they came from.

otherwise on the server, the running rsync only has the permissions of the
uid (user id) and gid (group id) stated.

Rsysc is running on both the source and the destination,
on both the local machine and the remote machine,
using rsync for communications or via a remote shell

With user and group permissions on Unix (Linux included)
it is relatively easy to set up permissions to that "everything"
excludes some stuff that needs to be excluded.
In contrast to Windows which likes to quit on first error after a partial
transfer,
unixy things (rsync included), like to keep going with what they can do.



-----Original Message-----
From: rsync-bounces+tony=servacorp.com at lists.samba.org
[mailto:rsync-bounces+tony=servacorp.com at lists.samba.org]On Behalf Of
Robert Wideman
Sent: Sunday, July 10, 2005 9:51 PM
To: Tony at ServaCorp.com; rsync at lists.samba.org
Subject: RE: destination directory problems


Ok, I get a new error.

$ rsync -avz /cygdrive/d/asm
robert at 192.168.1.102::backup/
Password:
building file list ... done
rsync: push_dir#1 "/" (in backup) failed: Permission
denied (13)
rsync error: errors selecting input/output files, dirs
(code 3) at main.c(406)
rsync: connection unexpectedly closed (4 bytes
received so far) [sender]
rsync error: error in rsync protocol data stream (code
12) at /home/lapo/packaging/tmp/rsync-2.6.3/io.c(359)

I have made the following changes before getting this.
chmod 644 /backup
chown root.root /backup
chmod 644 /etc/rsyncpasswd
chown root.root /etc/rsyncpasswd

/etc/rsyncpasswd has:
robert:password

/etc/rsyncd.conf has:
log file = /var/log/rsync.log
[backup]
        path            = /backup
        comment         = Backup
        list            = yes
        read only       = no
        auth users      = robert
        secrets file    = /etc/rsyncpasswd
        hosts allow     = 192.168.1.100
        uid             = 1000
        gid             = 1000

Any thoughts welcome.
Thanks
Robert

PS...are these error codes not documented?

--- Tony at ServaCorp.com wrote:

> I think what you are doing runs rsync on the remote
> server as user robert
> which has the home directory of /home/robert/
>
> Second case is trying to logon to rsync itself and
> fails.
> contents of /etc/rsyncpasswd  are what?
> (or if it is world readable rsync doesn't like it)
>
> /etc/rsyncpasswd	needs to be rw by root ONLY
> robert:password
>
> rsync -avz /cygdrive/d/asm
> robert at 192.168.1.102::backup/
>
> should then put asm into /backup/asm
>
> Depending on who on the Debian system should have
> access to or be able to
> write
> to the backups, you might want uid = and gid = lines
> in /etc/rsyncd.conf
>
>
> -----Original Message-----
> From:
> rsync-bounces+tony=servacorp.com at lists.samba.org
>
[mailto:rsync-bounces+tony=servacorp.com at lists.samba.org]On
> Behalf Of
> Robert Wideman
> Sent: Sunday, July 10, 2005 5:32 PM
> To: rsync at lists.samba.org
> Subject: destination directory problems
>
>
> I am having a problem getting my files backed up to
> the location I want
> to from a WinXP client going to a Debian rsync
> server.
> The following is sending asm/ to /home/robert/backup
> folder.
> rsync -avz /cygdrive/d/asm
> robert at 192.168.1.102:backup/
>
> My understanding of the rsync man page is that this
> is
> supposed to send
> asm/ to what the path that is defined in
> rsyncd.conf,
> mine is defined
> as /backup.
>
> I have tried it another way with failed attempts and
> I
> get the following error:
> rsync -avz /cygdrive/d/asm 192.168.1.102::backup/
> Password:
> @ERROR: auth failed on module backup
> rsync: connection unexpectedly closed (0 bytes
> received so far) [sender]
> rsync error: error in rsync protocol data stream
> (code
> 12) at
> /home/lapo/packaging/tmp/rsync-2.6.3/io.c(359)
>
> How do I make the asm/ folder go to 192.168.1.102's
> /backup and
> not /home/robert/backup?
>
> Here is my configurataion:
> rsyncd.conf:
> log file = /var/log/rsync.log
> [backup]
>         path            = /backup
>         comment         = Backup
>         list            = yes
>         read only       = no
>         auth users      = robert
>         secrets file    = /etc/rsyncpasswd
>         hosts allow     = 192.168.1.100
>
> rsync versions:
> WinXP SP2: 2.6.3 (cygwin environment)
> Debian 3.1: 2.6.5
>
> Thanks
> Robert
>
>
>
> ____________________________________________________
> Sell on Yahoo! Auctions – no fees. Bid on great
> items.
> http://auctions.yahoo.com/
> --
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read:
> http://www.catb.org/~esr/faqs/smart-questions.html
>
>




____________________________________________________
Sell on Yahoo! Auctions – no fees. Bid on great items.
http://auctions.yahoo.com/
--
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html



More information about the rsync mailing list