Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-13-2011, 03:58 PM   #1
Registered: Feb 2011
Location: NCR, Uttar Pradesh, India
Posts: 74

Rep: Reputation: 1
Help in understanding md5 password placement in grub..

My grub file looks like this:-

# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,5)
# kernel /boot/vmlinuz-version ro root=/dev/sda6
# initrd /boot/initrd-version.img
password --md5 <some hash>
title CentOS (2.6.18-194.el5)
root (hd0,5)
kernel /boot/vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-194.el5.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1

I understand the md5 password protects recovery mode options but why is it specifically placed at the begining of everything?

If I place it after "title Centos" line then it asks for password again.. so is this standalone instruction which makes the system to ask for password depending on the location of its placement?

Please explain other possible placements of this "password --md5 <value>" line in the code and its results.
Old 07-13-2011, 08:22 PM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
From memory, placing it at the top requests a password to modify boot options, placing it after a Title will prompt for a password to boot that item.
1 members found this post helpful.
Old 07-14-2011, 03:22 AM   #3
Registered: Feb 2008
Location: Bangalore, India
Posts: 69

Rep: Reputation: 5
Placing the password at the top will instruct the grub to stop the editing or passing parameters to the kernel via the grub. ( Example entering the single user mode )

Placing the password below the title will ask for a password before booting the OS. lets suppose you do not want to boot into a non-secured OS or any recover mode etc you can set a password there.

I do not think there are other places you can place the password.
1 members found this post helpful.
Old 07-30-2011, 10:48 AM   #4
Registered: Feb 2011
Location: NCR, Uttar Pradesh, India
Posts: 74

Original Poster
Rep: Reputation: 1
Got it..Thanks a lot! These replies solved the doubt.. :-)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MD5 password exposed Fredde87 Linux - Security 5 06-08-2010 06:22 PM
grub partition placement azamo Linux - General 9 01-07-2008 08:06 AM
MD5 Encrypted Password gjagadish Linux - Security 1 09-28-2007 04:39 AM
MD5 and password encryption SlowCoder Linux - Security 2 07-22-2007 09:08 AM
MD5 password encrytion metallica1973 Linux - Security 9 07-20-2005 11:50 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration