Trouble with password (daemon mode)

cbarratt at users.sourceforge.net cbarratt at users.sourceforge.net
Tue Oct 21 23:40:24 EST 2003


Dennis Chelukanov writes:

> I running rsync in daemon mode (rsync --daemon)
> Everything seems to work well until I try to protect item with
> password.
> 
> here is my /etc/rsyncd.conf :
> 
> use chroot = yes
> max connections = 10
> syslog facility = local5
> 
> [ftp]
>         path = /var/ftp
>         comment = ftp
>         secrets file = /etc/rsyncd.secrets
>         auth users = gate1
> 
> here is my /etc/rsyncd.secrets
> 
> gate1:abcdefg
> 
> Here is the result of execution :
> 
> /etc > rsync rsync://gate1@localhost/ftp/
> Password:
> @ERROR: auth failed on module ftp
> rsync: connection unexpectedly closed (87 bytes read so far)
> rsync error: error in rsync protocol data stream (code 12) at io.c(165)
> /etc >
> 
> What could it be ???

Either the permissions on /etc/rsyncd.secrets are too generous
or you are missing a newline at the end of /etc/rsyncd.secrets.

Craig



More information about the rsync mailing list