[xen-tools-dev] Status
Nathan O'Sullivan
nathan at mammoth.com.au
Sun Jun 6 00:49:22 CEST 2010
> I'd really like to do the password script, however I'm not sure what
> password generator works best. How can i generate a password hash with
> salting using a tool like this, does anyone know?
>
>
If I understand what you're asking, this is what we do on our website:
ENCRYPTED=`echo -n "mypass" | openssl passwd -1 -stdin`
sed -i "s#^\(root:\)[^:]*\(.*\)#\1$PASSWORD\2#" /etc/shadow
http://www.openssl.org/docs/apps/passwd.html
It has a -salt argument too
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://xen-tools.org/pipermail/xen-tools-dev/attachments/20100606/c3f89c0f/attachment.htm>
More information about the xen-tools-dev
mailing list