RE: [Wlug] Automatically setting passwords...
Well I came up with a kludgy solution... ... { perl snippet ... open($passwd,"| passwd --stdin useraccount") or die ("Unable to execute passwd...\n"); print $passwd $new_password_variable; close $passwd; ... } perl snippet ... -----Original Message----- From: Keller, Tim [mailto:Tim.Keller@stratus.com] Sent: Tuesday, June 11, 2002 9:41 AM To: 'wlug@wlug.org' Subject: [Wlug] 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. _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
you could look at the source code to the passwd utility or the apache htpasswd program. Don't you love open source :) or use an "expect" script and use the standard passwd utility. try "man expect" On Tue, 11 Jun 2002, Keller, Tim wrote:
Well I came up with a kludgy solution...
... { perl snippet ...
open($passwd,"| passwd --stdin useraccount") or die ("Unable to execute passwd...\n"); print $passwd $new_password_variable; close $passwd;
... } perl snippet ...
-----Original Message----- From: Keller, Tim [mailto:Tim.Keller@stratus.com] Sent: Tuesday, June 11, 2002 9:41 AM To: 'wlug@wlug.org' Subject: [Wlug] 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. _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
-- ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø Karl Hiramoto <karl@hiramoto.org> Work: 978-425-2090 ext 25 Cell: 508-517-4819 Personal web page: http://karl.hiramoto.org/ Zoop Productions: http://www.zoop.org/ KTEQ Rapid City: http://www.kteq.org/ AOL IM ID = KarlH420 Yahoo_IM = karl_hiramoto ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø P-K4
participants (2)
-
Karl Hiramoto
-
Keller, Tim