So I'm having difficulties getting rsyncd to do authentication
properly. 

here's what happens: 

[EMAIL PROTECTED]:~/tmp$ rsync rsync://[EMAIL PROTECTED]/testu
Password: 
@ERROR: auth failed on module testu
rsync: connection unexpectedly closed (89 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(190)

not so great. I can't seem to find anything in google about this
particular error. 

here is the relevant parts of /etc/rsyncd.conf: 

hosts allow = 192.168.0.0/255.255.255.0

# another module here

[testu] 
        comment = thing for testu
        path = /home/testu
        read only = no
        uid = testu
        auth users = testu
        secrets file = /etc/rsyncd.secrets

There are some other modules after this one and one before. I can give
you the whole file if people think it's relevant. 

here is rsyncd.secrets: 

olivian:password
testu:testu

testu is also a user which I've just added using adduser. Presumably
the user needs to be present in /etc/passwd etc. for the 'uid'
directive to work. Does it have to be there for 'auth users' to work?
I suspect not. 

Apparently you also need line breaks after the lines in the secrets
file. And I do. 

As far as I can see, I'm doing everything correctly (although
obviously I'm probably not) and this is just about the simplest
possible authenticated module setup. rsync works fine without
authentication: if I remove the 'auth users' you get a directory
listing like you'd expect.

clues, anyone? 

-- 
--
|Andrew Tarr | [EMAIL PROTECTED]        |  http://arc.stuff.gen.nz
|GPG Public Key:- http://arc.stuff.gen.nz/andrew.gpg
|_____
"There is no excellent beauty that hath not 
some strangeness in the proportions" 
--Francis Bacon
|~~~~~
|

Reply via email to