On 21/05/2010 20:10, Matt Lawrence wrote:
> This is probably a really simple question to answer.  I would like to
> generate a password hash programatically that can be pushed out to a bunch
> of Linux servers.  Writing the code to generate a random password and then
> mailing it to the person is easy, I just don't know how to generate the
> hash other than to use the passwd command.  Is there an easier way?

Not quite an answer to your question, but I'd draw attention to the 
existence of newusers(8) and chpasswd(8) [present in RHEL-alikes, part of 
"shadow-utils"] as tools useful when bulk setting user passwords.

James.
_______________________________________________
Tech mailing list
[email protected]
http://lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to