Automatically setting passwords...
Does anybody know of or created a script that can change a users password without human intervention? or on a side note, does anybody know how to in perl hash a textual password into a MD5 hash that would be suitable to be inserted into a shadow file. Thanks, Tim.
On Tue, 11 Jun 2002, Keller, Tim wrote: <snip>
or on a side note, does anybody know how to in perl hash a textual password into a MD5 hash that would be suitable to be inserted into a shadow file.
Thanks, Tim. <snip>
I'd like to know how Apache does their MD5 passwords, too. Bill
I would suggest going to www.cpan.org and getting the md5 package for perl. Or even better, I'm sure someone has wanted to do this same thing or something similar and might have even written all or most of the script. CPAN is the place to look. On Tue, 11 Jun 2002, Keller, Tim wrote:
Does anybody know of or created a script that can change a users password without human intervention?
or on a side note, does anybody know how to in perl hash a textual password into a MD5 hash that would be suitable to be inserted into a shadow file.
Thanks, Tim. _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
---------------------------------------------- | Chuck Haines | AOL: CyberGrex | | GDC Webmaster | ICQ: 3707881 | | WPILA Lab Manager | Yahoo: CyberGrex_27 | | http://gdc.wpi.edu | MSN: CyberGrex | ---------------------------------------------- "Geek by nature, Linux by choice."
Interesting enough after I sent the last email. I did some research (yes it was quick research) and came up with a couple things that might iterest you. There is a package called MD%-crypt which should suit your purpose (http://search.cpan.org/doc/LUISMUNOZ/Crypt-PasswdMD5-1.2/PasswdMD5.pm). I also found, http://search.cpan.org/doc/SSNODGRA/Unix-ConfigFile-0.06/PasswdFile.pm, which provides access to /etc/password and does everything for you. On Tue, 11 Jun 2002, Keller, Tim wrote:
Does anybody know of or created a script that can change a users password without human intervention?
or on a side note, does anybody know how to in perl hash a textual password into a MD5 hash that would be suitable to be inserted into a shadow file.
Thanks, Tim. _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
---------------------------------------------- | Chuck Haines | AOL: CyberGrex | | GDC Webmaster | ICQ: 3707881 | | WPILA Lab Manager | Yahoo: CyberGrex_27 | | http://gdc.wpi.edu | MSN: CyberGrex | ---------------------------------------------- "Geek by nature, Linux by choice."
Assuming you're using a reasonably current linux distro, you probably want to be doing this through pam. http://search.cpan.org/search?dist=Authen-PAM should get you going. This way you'd get all the locking and atomic operations that you really want when messing with the passwd files. Scott On Tue, 11 Jun 2002, Chuck Haines wrote:
Interesting enough after I sent the last email. I did some research (yes it was quick research) and came up with a couple things that might iterest you. There is a package called MD%-crypt which should suit your purpose (http://search.cpan.org/doc/LUISMUNOZ/Crypt-PasswdMD5-1.2/PasswdMD5.pm). I also found, http://search.cpan.org/doc/SSNODGRA/Unix-ConfigFile-0.06/PasswdFile.pm, which provides access to /etc/password and does everything for you.
On Tue, 11 Jun 2002, Keller, Tim wrote:
Does anybody know of or created a script that can change a users password without human intervention?
or on a side note, does anybody know how to in perl hash a textual password into a MD5 hash that would be suitable to be inserted into a shadow file.
Thanks, Tim. _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
---------------------------------------------- | Chuck Haines | AOL: CyberGrex | | GDC Webmaster | ICQ: 3707881 | | WPILA Lab Manager | Yahoo: CyberGrex_27 | | http://gdc.wpi.edu | MSN: CyberGrex | ---------------------------------------------- "Geek by nature, Linux by choice."
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
participants (4)
-
Bill Mills-Curran
-
Chuck Haines
-
Keller, Tim
-
Scott Venier