GenerationIP

Just for you

  • Increase font size
  • Default font size
  • Decrease font size
Home Documentation Mini Howto Howto protect your grub with a password

Howto protect your grub with a password

E-mail Print PDF
User Rating: / 0
PoorBest 

Type : System
Operating System : Redhat,Fedora,Centos

In this article, i explain you how to protect your grub with a password.This action must be made to secure the access of your data and reduce the chance to reboot your server in INIT 1 or in recovery mode.

INSTALL

You must be root to do this action.

Generate your password in the good format (use a strong password):

#/sbin/grub-md5-crypt
Password:
Retype password:
$1$tfQcK/$8ClWUjUmCwHCcwtT3E6W.1

Now you have your password encrypted in MD5 hash format.

You have to edit grub configuration file /boot/grub/grub.conf and paste the line in blue with your hash password.

default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-164.el5)

root (hd0,0)
kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/VolGroup01/LogVol00
initrd /initrd-2.6.18-164.el5.img
password --md5 $1$tfQcK/$8ClWUjUmCwHCcwtT3E6W.1

Warning :

Unfortunately, this solution does not prevent an attacker from booting into an insecure operating system in a dual-boot environment.

Last Updated on Saturday, 30 January 2010 22:31  

Share this article:

Add to: Mr. Wong Add to: Webnews Add to: Icio Add to: Oneview Add to: Kledy.de Social Bookmarking Add to:  FAV!T Social Bookmarking Add to: Favoriten.de Add to: Seekxl Add to: Social Bookmark Portal Add to: BoniTrust Add to: Power-Oldie Add to: Bookmarks.cc Add to: Newskick Add to: Newsider Add to: Linksilo Add to: Readster Add to: Yigg Add to: Linkarena Add to: Digg Add to: Del.icoi.us Add to: Reddit Add to: Jumptags Add to: Upchuckr Add to: Simpy Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Furl Add to: Yahoo Add to: Blogmarks Add to: Diigo Add to: Technorati Add to: Newsvine Add to: Blinkbits Add to: Ma.Gnolia Add to: Smarking Add to: Netvouz Add to: Folkd Add to: Spurl Add to: Google Add to: Blinklist Information