Hi, Can someone help me out, if I want to connect to a rsync server, and download / from it? It is started in /etc/rc.local by su -c "rsync --daemon" and /etc/rsyncd.conf contains: log file = /var/log/rsyncd.log pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock [tlf] path = / comment = export uid = root gid = root read only = yes hosts allow = 192.168.0.12 list = yes auth users = rsroot secrets file = /etc/rsyncd.secrets and /etc/rsyncd.secrets contains rroot:rroot On the computer where the data should be downloaded to do I use: rsync -avWHRx 192.168.0.6::tlf /media/backup/latest-tlf/ After entering the rroot password I get this error: @ERROR: auth failed on module tlf rsync error: error starting client-server protocol (code 5) at main.c(1296) [receiver] If I remove the "auth users" and "secrets file" it works. Can anyone help me out? =) Martin
--- Martin Jeppesen <d2xdt2@gmail.com> wrote:> Hi, > > Can someone help me out, if I want to connect to a rsync server, and > download / from it? > > It is started in /etc/rc.local by > su -c "rsync --daemon" > > and /etc/rsyncd.conf contains: > > log file = /var/log/rsyncd.log > pid file = /var/run/rsyncd.pid > lock file = /var/run/rsync.lock > > [tlf] > path = / > comment = export > uid = root > gid = root > read only = yes > hosts allow = 192.168.0.12 > list = yes > auth users = rsroot > secrets file = /etc/rsyncd.secrets > > and /etc/rsyncd.secrets contains > rroot:rroot > > On the computer where the data should be downloaded to do I use: > rsync -avWHRx 192.168.0.6::tlf /media/backup/latest-tlf/ > > After entering the rroot password I get this error: > @ERROR: auth failed on module tlf > rsync error: error starting client-server protocol (code 5) at > main.c(1296) [receiver] > > If I remove the "auth users" and "secrets file" it works. > > Can anyone help me out? =)Who is rsroot? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
> Who is rsroot?That was a typo in the email. Thanks =) That should have been rroot. Even if I try with rroot@ rsync -avWHRx rroot@192.168.0.6::tlf /media/backup/latest-tlf/ do I get: @ERROR: auth failed on module tlf rsync error: error starting client-server protocol (code 5) at main.c(1296) [receiver] When I look in /var/run there are there no rsyncd.log or rsyncd.lock. Could that be a problem? Martin
Have you checked the permissions on your /etc/rsyncd.secrets file? Unless you turn off "strict modes", this must not be readable by "other". On Fri, 2006-04-07 at 03:22 +0200, Martin Jeppesen wrote:> > Who is rsroot? > > That was a typo in the email. Thanks =) That should have been rroot. > > Even if I try with rroot@ > rsync -avWHRx rroot@192.168.0.6::tlf /media/backup/latest-tlf/ > > do I get: > @ERROR: auth failed on module tlf > rsync error: error starting client-server protocol (code 5) at > main.c(1296) [receiver] > > When I look in /var/run there are there no rsyncd.log or rsyncd.lock. > Could that be a problem? > > Martin