I have setup a Rysnc server in Mandrake 9.1 When I add a auth user into my Rsync.conf and rsync.secrets, it do not work, everytime it shows [root@html]# rsync chris@mandrake82::XXXXX/.html/. / Password: @ERROR: auth failed on module XXXXX rsync: connection unexpectedly closed (89 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(165) This is my rsync's config file [XXXXX] path =/Nukephp comment = XXXXX.com use chroot auth users = chris, secrets file = /etc/rsyncd.secrets This is my secret.files chris:chris
CHEUNG Chi Wai, Chris [chris.cheung@hld.com] wrote:> I have setup a Rysnc server in Mandrake 9.1 > When I add a auth user into my Rsync.conf and rsync.secrets, > it do not work, everytime it shows > [root@html]# rsync chris@mandrake82::XXXXX/.html/. / > Password: > @ERROR: auth failed on module XXXXX > rsync: connection unexpectedly closed (89 bytes read so far) > rsync error: error in rsync protocol data stream (code 12) at io.c(165) > > This is my rsync's config file > [XXXXX] > path =/Nukephp > comment = XXXXX.com > use chroot > auth users = chris, > secrets file = /etc/rsyncd.secrets > > This is my secret.files > chris:chrisRead 'man rsyncd.conf' - specifically the uid and gid sections. My *wild* guess is that since you haven't specified a uid/gid, that it is using user "nobody", and user "nobody" probably doesn't have read access to your secrets file. As I said, it's just a guess. HTH. -- Hardy Merrill Red Hat, Inc.
"CHEUNG Chi Wai, Chris" writes:> I have setup a Rysnc server in Mandrake 9.1 > When I add a auth user into my Rsync.conf and rsync.secrets, > it do not work, everytime it shows > [root@html]# rsync chris@mandrake82::XXXXX/.html/. / > Password: > @ERROR: auth failed on module XXXXX > rsync: connection unexpectedly closed (89 bytes read so far) > rsync error: error in rsync protocol data stream (code 12) at io.c(165) > > This is my rsync's config file > [XXXXX] > path =/Nukephp > comment = XXXXX.com > use chroot > auth users = chris, > secrets file = /etc/rsyncd.secrets > > This is my secret.files > chris:chrisSeveral things to check: - Is /etc/rsyncd.secrets the correct path? - Permission on /etc/rsyncd.secrets. If it is o+r then it will be ignored. - Are you missing a newline at the end of your /etc/rsyncd.secrets file? I believe rsync ignores the last line if it ends in EOF instead of a newline. - Probably benign, but I'd comment out the "auth users" entry too until you get it to work (don't know if the hanging comma will cause a problem). Craig
Thank you, Finally, my porblem is the secret file have to key in a enter at the end of line. -----Original Message----- From: cbarratt@users.sourceforge.net [mailto:cbarratt@users.sourceforge.net] Sent: Saturday, August 23, 2003 2:42 PM To: CHEUNG Chi Wai, Chris Cc: 'rsync@lists.samba.org' Subject: Re: authentication error "CHEUNG Chi Wai, Chris" writes:> I have setup a Rysnc server in Mandrake 9.1 > When I add a auth user into my Rsync.conf and rsync.secrets, > it do not work, everytime it shows > [root@html]# rsync chris@mandrake82::XXXXX/.html/. / > Password: > @ERROR: auth failed on module XXXXX > rsync: connection unexpectedly closed (89 bytes read so far) > rsync error: error in rsync protocol data stream (code 12) at io.c(165) > > This is my rsync's config file > [XXXXX] > path =/Nukephp > comment = XXXXX.com > use chroot > auth users = chris, > secrets file = /etc/rsyncd.secrets > > This is my secret.files > chris:chrisSeveral things to check: - Is /etc/rsyncd.secrets the correct path? - Permission on /etc/rsyncd.secrets. If it is o+r then it will be ignored. - Are you missing a newline at the end of your /etc/rsyncd.secrets file? I believe rsync ignores the last line if it ends in EOF instead of a newline. - Probably benign, but I'd comment out the "auth users" entry too until you get it to work (don't know if the hanging comma will cause a problem). Craig