Latest LQ Deal: Linux Power User Bundle
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 03-27-2009, 04:19 PM   #1
LQ Newbie
Registered: Mar 2009
Posts: 3
Blog Entries: 5

Rep: Reputation: 0
how to set grub menu password

How to set grub menu password so that no one can change your password through recovery mode option in an is very important for security reasons. i am going to show you how it can be done.The steps are given below to set grub menu password in an ubuntu.

1.first gain the root privilages by typing
$sudo su
you will be asked for password give it

2.By default root doesn't have a password ,so first set the root password by going to the termina
# passwd
you will be asked for a password two times
now you have set the root password.

3.go to the file called shadow by typing
~#cd /etc && nano shadow
4.copy the root password from there
the second field something like

5.go to the menu.lst file by typing
~#cd /boot/grub/ && nano menu.lst find the line
##password --m5 passwd

uncomment that line and paste root password in the place of passwd
7.find the line #password topsecret
uncomment that also you are done next time when you go into the recovery mode you will be asked for password you have saved your computer of being getting hacked
10.ok thanks bye-bye
Old 03-28-2009, 02:01 AM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,418

Rep: Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398
If someone has physical access, that won't be sufficient, they'll just use the install media in rescue mode.
To be more secure you need to disable the cd drive at least.
Maybe add a bios passwd. If they can take the disk out, you need encryption....
Old 03-28-2009, 02:59 AM   #3
Senior Member
Registered: Apr 2007
Location: bbsr,orissa,India
Posts: 1,363

Rep: Reputation: 135Reputation: 135
yes if someone has physical access to your pc,it'll easy to hack ur pc in rescue mode...
Old 03-28-2009, 03:15 AM   #4
Registered: Nov 2007
Location: north carolina
Distribution: Mostly Linux, but we have quite a few using Windows 2003 and Free BSD
Posts: 32

Rep: Reputation: 15
If you give someone physical access to your server/computer then you are just asking for trouble if you are trying to be security conscious and you don't trust the people around your computer. If you give me physical access to your computer, there is no type of software or encryption device that can keep me away from your data! Simple! If it can be made, it can be cracked! The first rule of computer security is common sense. If you cannot trust your environment, pick another environment! Good luck!


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
How to set Grub not to auto boot any OS without Grub Boot menu shown ussr_1991 Linux - Software 2 09-01-2007 09:36 AM
Grub Menu doesn't reflect menu.lst file fatsheep Linux - Software 4 06-11-2007 02:29 PM
change Root Password even if the password in the grub is also set sheelnidhi Linux - General 6 08-30-2006 08:27 AM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 09:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:23 PM.

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