LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Password Protected Grub for Win (https://www.linuxquestions.org/questions/linux-newbie-8/password-protected-grub-for-win-198923/)

vijayind 06-28-2004 10:21 PM

Password Protected Grub for Win
 
Hi,
I have RH9 with Grub 0.93 and WIndows ME.
I want to prevent access to booting my Windows.

With RH 7.2 & LILO I had put a password lock for booting windows.
Can u tell me how do to the same here

DavidPhillips 06-29-2004 01:31 AM

run grub to enter the grub command-line.

then use mdcrypt to encrypt your password..

grub> mdcrypt

Password: *******
Encrypted: $1$ek7nQ0$4dJGy9ZcEps0px0VRluTD1

grub> quit


add the encrypted password to your grub.conf file, and add the lock command to the title to be locked.


password --md5 $1$ek7nQ0$4dJGy9ZcEps0px0VRluTD1

title winders
lock
rootnoverify (hd0,0)
chainloader +1


http://linuxselfhelp.com/gnu/grub/ht.../grub_toc.html

vijayind 07-02-2004 10:05 PM

Thanks for that command & all the info. But all would be too perfect id I didn't MESS UP !!!
I found lilo in /etc and was overjoyed. Promptly i installed lilo as my default boot loader, only to realize my Redhat has shifted to GRUB.
Now i have a boot up screen which shows all my OS's , but that's it !!!
I can't select any entry other than the default ie linux. Setttling lilo to text mode hasn't changed a thing.
So please tell me how to make GRUB as my default boot loader AGAIN !!!

DavidPhillips 07-04-2004 08:46 PM

grub-install /dev/hda


that will install grub to the mbr of the primary. It will use your settings in the menu.lst


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