LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-28-2004, 11:21 PM   #1
vijayind
Member
 
Registered: Feb 2004
Distribution: Debian Sarge
Posts: 33

Rep: Reputation: 15
Question 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
 
Old 06-29-2004, 02:31 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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

Last edited by DavidPhillips; 06-29-2004 at 02:33 AM.
 
Old 07-02-2004, 11:05 PM   #3
vijayind
Member
 
Registered: Feb 2004
Distribution: Debian Sarge
Posts: 33

Original Poster
Rep: Reputation: 15
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 !!!
 
Old 07-04-2004, 09:46 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
grub-install /dev/hda


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


Reply


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
Password Protected Folder's vezril Linux - Security 2 06-07-2005 12:26 AM
Password Protected Folder? crab_2004 Linux - Software 2 02-22-2004 11:50 PM
unlocking (Win)password-protected file on CD svar Linux - General 5 10-13-2003 03:16 PM
Password Protected Directories TheSockMonster Linux - Security 2 05-31-2002 05:07 PM
Password protected entries HHH Linux - General 3 06-27-2001 11:13 PM


All times are GMT -5. The time now is 09:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration