I have a server configured to run rsync as demon /etc/rsyncd.conf file:

log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock

[documents]
   path = /home/user/work
   comment = User's Documents folder
   uid = user
   gid = user
   read only = no
   auth users = user
   secrets file = /etc/rsyncd.secrets

/etc/rsyncd.secrets file:

user:more

on the client side I run:

rsync my_file user@ip_address::documents

and I receive the following error:

@ERROR: auth failed on module documents
rsync error: error starting client-server protocol (code 5) at main.c(1524) [sender=3.0.7]

On the server I have a root user named user with different password. On the client side I tried both passwords with the same results.

What I'm doing wrong?

link|improve this question

25% accept rate
In order to use rsync as a deamon I use [documents] path = /home/user/work comment = User's Documents folder read only = no . Without a user and authentication. – telebog Mar 1 '11 at 9:55
feedback

1 Answer

Look in /var/log/rsyncd.log. Maybe the perms in your "/etc/rsyncd.secrets " file are too wide.

link|improve this answer
2011/03/01 11:49:07 [13367] connect from user2.local (192.168.0.196) 2011/03/01 11:49:10 [13367] auth failed on module work from user2.local (192.168.0.196): unauthorized user in /etc/rsyncd.secrets file I added: user2:passwd user2.local:passwd But same result. – telebog Mar 1 '11 at 9:52
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.