"@ERROR: auth failed on module"

jw schultz jw at pegasys.ws
Wed Dec 11 12:17:00 EST 2002


[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 at 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 at moby /]# cat /etc/rsyncd.secrets
> passwd
> 
> [root at 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 at core /]# cat /etc/rsyncd.secrets
> passwd
> 
> [root at core /]# /usr/local/bin/rsync --rsync-path=/usr/local/bin/rsync 
> --password-file=/etc/rsyncd.secrets -vv /tmp nexnix at 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 at core /]#
> 
> [root at 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:		jw at pegasys.ws

		Remember Cernan and Schmitt



More information about the rsync mailing list