Wednesday, August 11, 2010

How to Reset GRUB Password in Linux

Here are the steps of changing / rest grub password even after loading the OS

(1) # grub
 grub> passwd: **********
 grub> Encripted: $1$CxcdNVbcfsgUEFd0

Now copy the password-hash ie Encrypted value

(2) Edit grub.conf file and paste the password-hash

# vi /etc/grub.conf

passwd --md5 $1$CxcdNVbcfsgUEFd0

(3) Now save the file and restart the system.

No comments:

Post a Comment