LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-13-2011, 02:58 PM   #1
infinite_scale
Member
 
Registered: Feb 2011
Location: NCR, Uttar Pradesh, India
Posts: 78

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
#boot=/dev/sda
password --md5 <some hash>
default=1
timeout=5
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
hiddenmenu
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, 07:22 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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, 02:22 AM   #3
nooneknowme
Member
 
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, 09:48 AM   #4
infinite_scale
Member
 
Registered: Feb 2011
Location: NCR, Uttar Pradesh, India
Posts: 78

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


Reply



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 05:22 PM
grub partition placement azamo Linux - General 9 01-07-2008 07:06 AM
MD5 Encrypted Password gjagadish Linux - Security 1 09-28-2007 03:39 AM
MD5 and password encryption SlowCoder Linux - Security 2 07-22-2007 08:08 AM
MD5 password encrytion metallica1973 Linux - Security 9 07-20-2005 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:27 AM.

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