Hello. 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 ??? I have RSync 2.5.6 running on FreeBSD 4.8 -- Best regards, Dennis mailto:dennis_ch@ua.fm
Dennis Chelukanov
2003-Oct-21 09:10 UTC
Trouble with password (daemon mode) Thanks, trouble solved.
Hello Dennis, Tuesday, October 21, 2003, 1:32:25 AM, you wrote: DC> I running rsync in daemon mode (rsync --daemon) DC> Everything seems to work well until I try to protect item with DC> password. Thanks, the problem was in rights on file rsyncd.secrets - it was world readable while option strict was set to true by default. -- Best regards, Dennis mailto:dennis_ch@ua.fm
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