[edited] On Wed, Dec 11, 2002 at 11:55:49AM +0000, Nick Lindsell wrote:
> Greetings list,
>       I've been banging my head against this for a few days now, so finally
> I throw myself upon your tender mercies.
> 
>       I had rsync working fine to make offsite backups via an IPSEC VPN
> over an ADSL connection - until the remote raid5 server went down. It was 
> rebuilt
> with  RedHat 8 and since then I have not been able to rsync to it. Both ends
> have vanilla rsync-2.5.5 installed.  Machine "moby" is the remote (i.e 
> destination)
> and "core" is the local (source) machine on RedHat 7.3 - eventually I will 
> sync the
> entire filesystem of core to moby::/home/nexnix as we did before.
> 
> The gory details:-
> 
> [root@moby /]# ls -l /etc/rsync*.*
> -rw-r--r-- 1 root root 550   Dec 10 16:14 /etc/rsyncd.conf
> -rw------- 1 root root 7      Dec  11 12:07 /etc/rsyncd.secrets
> 
> [root@moby /]# cat /etc/rsyncd.secrets
> passwd
> 
> [root@moby /]# cat /etc/rsyncd.conf
> uid=root
> gid=root
> max connections = 1
> hosts allow = 217.207.227.227/32 192.168.100.0/24
> hosts deny = 0.0.0.0/0
> pid file = /var/run/rsyncd.pid
> [nexnix]
>   path = /home/nexnix
>   comment = NexNix offsite backup
>   auth users = nexnix
>   secrets file = /etc/rsyncd.secrets
>   read only = no
>   strict modes = false
> [tmp]
>   path = /home/tmp
>   comment = TMP
>   auth users = nexnix
>   secrets file = /etc/rsyncd.secrets
>   read only = no
>   strict modes = false
> 
> [root@core /]# cat /etc/rsyncd.secrets
> passwd
> 
> [root@core /]# /usr/local/bin/rsync --rsync-path=/usr/local/bin/rsync 
> --password-file=/etc/rsyncd.secrets -vv /tmp nexnix@moby::TMP
> opening tcp connection to moby port 873
> @ERROR: auth failed on module tmp
> rsync: connection unexpectedly closed (87 bytes read so far)
> rsync error: error in rsync protocol data stream (code 12) at io.c(150)
> [root@core /]#
> 
> [root@moby /]# tail /var/log/messages
> Dec 11 12:07:51 moby rsyncd[16370]: auth failed on module tmp from core 
> (192.168.100.2)
> 
> Can anyone spot the obvious mistake and put me out of my misery??

The secrets file on the server (moby) needs the user names
in it as specified in rsyncd.conf(5)  The format isn't the same as
the --password-file.

-- 
________________________________________________________________
        J.W. Schultz            Pegasystems Technologies
        email address:          [EMAIL PROTECTED]

                Remember Cernan and Schmitt
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html

Reply via email to