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@moby /]# ls -ld /home/tmp
drwxrwxrwx 2 nexnix nexnix 4096 Dec 3 11:44 /home/tmp
[root@moby /]# cat /etc/xinetd.d/rsync
# default: off
# description: The rsync server is a good addition to am ftp server, as it \
# allows crc checksumming etc.
service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/local/bin/rsync
server_args = -vv --daemon
log_on_failure += USERID
}
[root@moby /]#
[root@core /]# ls -l /etc/rsync*.*
-rw------- 1 root root 7 Dec 11 11:05 /etc/rsyncd.secrets
[root@core /]# cat /etc/rsyncd.secrets
passwd
[root@core /]# /usr/local/bin/rsync nexnix@moby::
nexnix NexNix offsite backup
tmp TMP
[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)
Dec 11 12:22:49 moby rsyncd[16424]: auth failed on module tmp from core
(192.168.100.2)
Dec 11 12:24:34 moby rsyncd[16431]: auth failed on module tmp from core
(192.168.100.2)
Dec 11 12:25:03 moby rsyncd[16439]: auth failed on module tmp from core
(192.168.100.2)
Dec 11 12:26:47 moby rsyncd[16444]: auth failed on module tmp from core
(192.168.100.2)
[root@moby /]#
[root@core /]# bugger
bash: bugger: command not found
[root@core /]#
Can anyone spot the obvious mistake and put me out of my misery??
tia
nick@nexnix
[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: jw@pegasys.ws Remember Cernan and Schmitt
Thanks - that fixed it. I failed to spot the difference between the secrets file on the server and the password file on the client. many thanks nick@nexnix>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@pegasys.ws > > Remember Cernan and Schmitt