Just add a line in your grub.conf file before the list of kernels, saying:
password you_password_in_clear_text
If you want to encrypt your password, open a terminal, call grub (it
will give you a prompt) and then type:
md5crypt (enter)
It will ask you for a password, then it returns something like:
$1$YAfO81$5Qf64NaiJSqzlPLMlvepw1 wich is your password encrypted in a
MD5 hash.
Then go to your grub.conf and in the password line put the following:
password --md5 $1$YAfO81$5Qf64NaiJSqzlPLMlvepw1
Now you have a password protected boot loader.
Anyway, be carefull, since if you mistake something, you won't be able
to modify parameters at boot time.
Always have a Rescue CD at hand.
Good luck.
--------------------------
Gaston Martres
Tech IT - Soluciones IT
Cel: 15-5614-3012
http://www.tech-it.com.ar
--------------------------
Jim Cornette wrote:
Eric Tanguy wrote:
I would like to know how to protect grub command line to be modified at
startup by a password ?
Thanks
--
Eric Tanguy | Nantes, France <eric.tanguy@xxxxxxxxxxxxxx>
Key : A4B8368F | Key Server : subkeys.pgp.net Fedora Core release 4
(Stentz) sur athlon kernel 2.6.13-1.1532_FC4
During the install process, you have an option to select a password
for grub. After installation, I have no idea.
The man or info programs might give you some help. You can also get
info on config files. Grub contains the password within grub.conf.
I hope this leads you in the right direction.
Jim