I'm putting the results of "echo password | /path/to/courier/sbin/userdbpw" in a variable in my script and then adding it to my call to userdb with "systempw=$pw" and it seems to work. I then do a makeuserdb and try loggin in via my webclient and no dice.
I then did a "userdbpw | userdb [EMAIL PROTECTED] set systempw" from my shell and manually entered the same password from my script. Do a makeuserdb and try to login and it works. Am I missing something (admittedly my shell scriping kung-fu is weak)? --Tony On Wed, 2002-01-30 at 16:22, Mark Janssen wrote: > On Wed, Jan 30, 2002 at 03:52:48PM -0600, Tony Bibbs wrote: > > Is there a way to call userdbpw such that it isn't interactive (i.e. > > doesn't prompt for password)? I'd like to use such a thing in a script. > > Sure... provide input from stdin: > > $ echo password | ~courier/sbin/userdbpw -md5 > > Mark Janssen Unix / Linux, Open-Source and Internet Consultant @ SyConOS IT > E-mail: mark(at)markjanssen.nl / maniac(at)maniac.nl GnuPG Key Id: 357D2178 > Web: Maniac.nl Unix-God.[Net|Org] MarkJanssen.[com|net|org|nl] SyConOS.[com|nl] > > _______________________________________________ > courier-users mailing list > [EMAIL PROTECTED] > Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users -- Tony Bibbs | Life is a moderately good play [EMAIL PROTECTED] | with a bad 3rd act. 515.554.8046 | _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
