I have a rsync server set up on a win2k server and a win xp pro computer is my client. It's working very well doing the anonymous transfers. However, I've tried setting up a password file and not having any success. rsyncd.conf on my server: use chroot = false strict modes = false hosts allow = * [serverbu] auth users = user path = c:/serverbu read only = no list = no secrets file = c:/rsync/rsync.secrets rsync.secrets on my rsync server user:password I run the following command string on my client computer: C:\rsync\rsync.exe -av --delete --password-file=/rsync/rsync.secrets "/cygdrive/C/Documents and Settings/All Users" "user@server::serverbu/" the password file on my XP machine looks just like the one on the server. I get an error stating "password file must not be other-accessible continuing without password file using RSYNC_PASSWORD environment variable. @ERROR: auth failed on module serverbu" I tried "set rsync_password=password" as well but that doesn't work either. Any ideas on how I can get this working with passwords. Thanks, Mike Winfrey
It's my understanding that passwords don't work in a cygwinned rsync. You might consider limiting the modules to a certain trusted IP-address . Kind regards, Bart Coninckx Network Administrator CNE, ASE ************************************* Sita ICT Services Lilsedijk 19 B-2340 Beerse Belgium e-mail: bart.coninckx@sita.be Tel: + 32 (0) 14 62 28 22 Fax: + 32 (0) 14 62 41 47 ************************************* "Mike Winfrey" <Mike@intellisolv To: <rsync@lists.samba.org> .com> cc: Sent by: Subject: Securing Rsync rsync-admin@lists .samba.org 27/01/2003 16:18 I have a rsync server set up on a win2k server and a win xp pro computer is my client. It's working very well doing the anonymous transfers. However, I've tried setting up a password file and not having any success. rsyncd.conf on my server: use chroot = false strict modes = false hosts allow = * [serverbu] auth users = user path = c:/serverbu read only = no list = no secrets file = c:/rsync/rsync.secrets rsync.secrets on my rsync server user:password I run the following command string on my client computer: C:\rsync\rsync.exe -av --delete --password-file=/rsync/rsync.secrets "/cygdrive/C/Documents and Settings/All Users" "user@server::serverbu/" the password file on my XP machine looks just like the one on the server. I get an error stating "password file must not be other-accessible continuing without password file using RSYNC_PASSWORD environment variable. @ERROR: auth failed on module serverbu" I tried "set rsync_password=password" as well but that doesn't work either. Any ideas on how I can get this working with passwords. Thanks, Mike Winfrey -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Mike Winfrey wrote:> I have a rsync server set up on a win2k server and a win xp pro > computer is my client. It's working very well doing the anonymous > transfers. However, I've tried setting up a password file and not > having any success. > > rsync.secrets on my rsync server > user:password > > I run the following command string on my client computer: > C:\rsync\rsync.exe -av --delete --password-file=/rsync/rsync.secrets > "/cygdrive/C/Documents and Settings/All Users" > "user@server::serverbu/" > > the password file on my XP machine looks just like the one on the > server.There is your problem, then. From the manpage: --password-file (The file) should contain just the password as a single line.> I tried "set rsync_password=password" as well but that doesn't work > either.rsync_password != RSYNC_PASSWORD Max.
I seem to remember that one of the links in "resources" at www.rsync.org pointed to a page that talked about running rsync on a Win32. This page warned for the use of passwords. But if it works, it works, right? Kind regards, Bart Coninckx Network Administrator CNE, ASE ************************************* Sita ICT Services Lilsedijk 19 B-2340 Beerse Belgium e-mail: bart.coninckx@sita.be Tel: + 32 (0) 14 62 28 22 Fax: + 32 (0) 14 62 41 47 ************************************* ========================== Disclaimer =================================The information in this email is confidential, and is intended solely for the addressee(s). If you are not the intended recipient of this email please let us know by reply and then delete it from your system; you should not copy this message or disclose its contents to anyone, not even by forwarding it. Due to the integrity risk of sending emails over the Internet, Sita ICT will accept no liability for any comments and/or attachments contained within this email. ========================== Disclaimer ================================= "Max Bowsher" <maxb@ukf.net To: "Mike Winfrey" <Mike@intellisolv.com>, <bart.coninckx@sita.be> > cc: <rsync@lists.samba.org> Subject: Re: Securing Rsync 27/01/2003 17:49 bart.coninckx@sita.be wrote:> It's my understanding that passwords don't work in a cygwinned rsync.I see no reason why that should be the case. Max.
On cygwin and Netware, I think that message is coming from the default strict modes in rsyncd.conf. For these, be sure to add "strict modes=no" in the rsyncd.conf. Lee
Thanks to all for your help. I got it working and am in the process of refining my configuration to do what I need it to do. I wish I could tell you everything I did to get it working but it would be too confusing. I finally started over and that's what made everything start working. Thanks again, Mike Winfrey -----Original Message----- From: Max Bowsher [mailto:maxb@ukf.net] Sent: Monday, January 27, 2003 10:49 AM To: Mike Winfrey; rsync@lists.samba.org Subject: Re: Securing Rsync Mike Winfrey wrote:> I have a rsync server set up on a win2k server and a win xp pro > computer is my client. It's working very well doing the anonymous > transfers. However, I've tried setting up a password file and not > having any success. > > rsync.secrets on my rsync server > user:password > > I run the following command string on my client computer: > C:\rsync\rsync.exe -av --delete --password-file=/rsync/rsync.secrets > "/cygdrive/C/Documents and Settings/All Users" > "user@server::serverbu/" > > the password file on my XP machine looks just like the one on the > server.There is your problem, then. From the manpage: --password-file (The file) should contain just the password as a single line.> I tried "set rsync_password=password" as well but that doesn't work > either.rsync_password != RSYNC_PASSWORD Max.