LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-27-2009, 03:19 PM   #1
am_it_wild
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 ubuntu.it 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
root:$$45678888999$$$:kfjf

5.go to the menu.lst file by typing
~#cd /boot/grub/ && nano menu.lst

6.now 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

8.now you are done next time when you go into the recovery mode you will be asked for password
9.now you have saved your computer of being getting hacked
10.ok thanks bye-bye
 
Old 03-28-2009, 01:01 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 01:59 AM   #3
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

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, 02:15 AM   #4
chownuseradd
Member
 
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!
 
  


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

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

All times are GMT -5. The time now is 05:00 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