April 25, 2009

How to set GRUB password ?

Login as root user

Enter grub mode:

# grub

Use md5crypt to encrypt password:

grub> md5crypt
Password: ******
Encrypted: $1$jxcdN0$hVHViq1aiPf8FziuGJGZp0

Copy down encrypted password:
$1$jxcdN0$hVHViq1aiPf8FziuGJGZp0

Exit grub mode:
grub> quit

Modify file /etc/grub.conf:

# vi /etc/grub.conf

Insert encrypted password in between "splashimage..." and "title...":
...
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
password --md5 $1$jxcdN0$hVHViq1aiPf8FziuGJGZp0
title BIZ DESK (2.4.20-8elx)

Save edited file

No comments:

Post a Comment