rsync daemon and secrets file

Hardy Merrill hmerrill at redhat.com
Fri Aug 22 23:49:52 EST 2003


I'm trying to understand how to properly setup the
/etc/rsyncd.conf file to run an rsync daemon with a
secrets file specified in a module - the rsync.conf
manpage does not spell it out clearly enough.

Rsync server is rsync-2.5.6.

If this is my /etc/rsyncd.conf file:
------------------------------------
log file = /var/log/rsync
uid = root
gid = root
[test]
        uid = rsync1
        gid = rsync1
        path = /rsync_test
        comment = Rsync Test - Comment
[test-secret]
        comment = Testing Secret Stuff
        path = /rsync_test_secret
        secrets file = /etc/rsync.secrets
        auth users = joe


And this is the /etc/rsyncd.secrets file:
-----------------------------------------
test:another_pw


And permissions on the /etc/rsync* files:
-----------------------------------------
[root at merrill etc]# ls -l rsync*
-rw-r-----    1 root     root          261 Aug 22 09:02 rsyncd.conf
-rw-r-----    1 root     root            9 Aug 22 09:10 rsyncd.secrets


And permissions on the /rsync_test_secret directory:
----------------------------------------------------
drwxr-xr-x    3 rsync1   rsync1       4096 Jul 10 12:16 rsync_test
drwxr-xr-x    3 root     root         4096 Aug 22 08:44 rsync_test_secret


With those settings, a client logged on to a different
machine in the same network, as user "test", connecting with

  rsync -avv my.rsync_server.com::test-secret/one_secret /tmp/rsync_test_secret

gets the 'password:' prompt, and then after entering
password 'another_pw', gets this error:

  @ERROR: auth failed on module test-secret

and the /var/log/rsync log gets this error:

  2003/08/22 09:11:08 [3377] auth failed on module test-secret from my.rsync_server.com ([ip of client])


What am I missing?

TIA.

-- 
Hardy Merrill
Red Hat, Inc.



More information about the rsync mailing list