Disabling Grub Options to Provide System Security..

If we are doing like that(Previous Post) , There is no security for our system.For that we have to disable the grub options

Do the following It is very interesting,

In Terminal(should be a root user)

#grub

It it will entered into sub terminal

grub>md5crypt

password: <type Password>

Encrypted: <Encrypted Password>

Description: In the above command we are applying the md5(Message-Digest algorithm 5) for encrypt the given password

go to the file /boot/grub/menu.lst

default : <menu.lst>

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,4)
#          kernel /vmlinuz-version ro root=/dev/sda6
#          initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,4)/grub/splash.xpm.gz
hiddenmenu

title Fedora (2.6.25-14.fc9.i686)
root (hd0,4)
kernel /vmlinuz-2.6.25-14.fc9.i686 ro root=UUID=370305ae-f944-4a91-9840-1d3f39a01bed rhgb quiet
initrd /initrd-2.6.25-14.fc9.i686.img
title Windows xp
rootnoverify (hd0,0)
chainloader +1

To Disable the grub Option:

password –md5 <encrypted password>

add this line to above the title line of the menu.lst file.

For setting particular os Password

paste the same line
password –md5 <encrypted password>
after the particular os title.

Ex:<Set password for booting XP>

title Windows xp
password –md5 <encrypted password>
rootnoverify (hd0,0)
chainloader +1

you can also lock the particular os to boot
Just add the command lock after the tilte of the particular OS

title Windows xp
lock
rootnoverify (hd0,0)

chainloader +1

Keep Rocking…

By Ramkumar.K

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.