Where did grub-md5-crypt go?

Bryn M. Reeves bmr at redhat.com
Mon Nov 21 16:14:41 UTC 2011


On 11/21/2011 03:58 PM, Terry Polzin wrote:
> Went to encrypt a passwd for a kickstart file and no grub-md-5-crypt.
>

The grub-md5-crypt script is part of the grub1 (well, grub-0.97 ;) 
package which has been replaced by grub2 in F16.

The new grub provides a grub2-mkpasswd-pbkdf2 command that generates 
password hashes using the "password-based key derivation function 2"[1] 
that can be used with the new bootloader.

If you need something that generates salted md5 password hashes for 
kickstart scripts or other uses then you can either use an older system 
that still has grub-md5-crypt (it relies on the grub binary so you can't 
just snarf the script) or use the openssl passwd command:

$ openssl passwd -1
Password:
Verifying - Password:
$1$GsTg0gmS$2mbho2f4PADEKcDSsiMrt0

Regards,
Bryn.


More information about the users mailing list