[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Grub password
- Subject: [ale] Grub password
- From: magius at wittsend.com (Scott Warfield)
- Date: Wed Nov 24 12:12:26 2004
So we know that we can use grub-md5-crypt to generate a grub passwod. The
hash is then generated as such: $1$[seed]$[hash]. In perl we can generate
something similar by using "$hash=crypt([password],[seed]);", where seed is
"\$1\$xxxxxx".
However, if you use the perl generated hash, the password wont work in grub.
Does any know why that is? I'm trying to automate a grub password
installation with perl.
-------------------------------------------------------
Scott Warfield
Internet Security Systems
X-Force Developer
swarfield at iss.net
PGP Key: 0x1DE30C1D
-------------------------------------------------------