How To Put Password For GRUB Loader On RHEL6 / CENTOS6 / Scientific Linux 6 - DC Geek

Breaking

DC Geek

I am still Learning

Follow By Mail

test banner

Post Top Ad

Responsive Ads Here

Post Top Ad

Responsive Ads Here

Thursday, July 11, 2013

How To Put Password For GRUB Loader On RHEL6 / CENTOS6 / Scientific Linux 6


Grub stands for GRand Unified Bootloader.It is the default bootloader in linux platforms.

In this tutorial i will tell you how to put password for grub loader 

Because security is very important in linux platform,any one can logon into the linux system into single user mode and they will change the root password easily.

so to prevent these we will protect the GRUB by password 

In here I am using Redhat 6,the procedures are same for Fedora 6,Centos 6,scientific Linux 6

Step 1: Login as root user
            
            $ su

Step 2: Add password to grub
Type the following command in terminal

           grub-md5-crypt



Type  the password and again retype password
copy the password

Step 3: Add the password to Grub file

Edit the grub file 

          #vi /boot/grub/grub.conf



Add the copied password after the hiddenmenu line in configuration file

password --md5 [*********pass******]



Step 4: Testing

Save the file and restart the system 
Enter into the grub menu it will ask for password



Thats it...........
-->

No comments:

Post a Comment

Post Top Ad

Responsive Ads Here