Review your favorite Linux distribution.
Go Back > Blogs > am_it_wild
User Name


Rate this Entry

setting grub menu password

Posted 03-27-2009 at 03:13 PM by am_it_wild

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
Posted in Uncategorized
Views 1015 Comments 0
« Prev     Main     Next »
Total Comments 0




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