LinuxQuestions.org
Visit Jeremy's Blog.
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 08-21-2007, 11:26 PM   #1
Gortex
Member
 
Registered: Nov 2005
Location: Enid Ok
Distribution: ubuntu 64 , debian , fedora core , vista ultimate 64, Winows 7 64 ultimate :p
Posts: 219

Rep: Reputation: 30
Grub password


I am having problems setting up a password for grub.
I read the man grub and it pointed me to the info grub.
After reading that, it basicly tells me to place the password in a config file, but isnt that plain text ?
I am not forsure what exactly to do here, and dont wana reck my boot loader any advice would be cool.
 
Old 08-22-2007, 05:00 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
it basicly tells me to place the password in a config file, but isnt that plain text ?
Yes, but /boot/grub/grub.conf should be readable and writable by root only.

As root execute 'grub'. Now type 'md5crypt'. Now enter your password. Everything after "Encrypted: " is your password. Edit your /boot/grub/grub.conf and add a line "password --md5 PASSWORDHERE" where PASSWORDHERE is the stuff you saved from the md5crypt output. Save, close.
 
Old 08-26-2007, 10:43 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Or use:
Code:
$ grub-md5-crypt 
Password: Hello World! 
Retype password: Hello World! 
$1$fvOt6$i/2.xbvETTCX02VjPP49n0
The 32 characters it returns are the encrypted password. I show the example password in red, in reality nothing will show on the screen as you type.

The differences are: a) You must type your password 2ce -- much safer, & b) No "Encrypted: " preceding the encryption.

<rant>
The info system is antiquated & should deprecated in favor of almost anything else, especially good man pages. Probably the worst thing about it is the Byzantine structure & (usually) no decent index. Fortunately RMS is tacitly admitting this by allowing info pages to be turned into HTML. When you use the "entirely on one web page" version, you can search the whole manual at once.
</rant>

In any case, the GRUB manual is here:
http://www.gnu.org/software/grub/manual/grub.html

and the instructions, such as they are, for grub-md5-crypt here:
http://www.gnu.org/software/grub/man...dmd5_002dcrypt
 
  


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
change Root Password even if the password in the grub is also set sheelnidhi Linux - General 6 08-30-2006 08:27 AM
GRUB Password sunlinux Linux - Security 4 08-16-2006 11:47 AM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 09:01 PM
grub password linuxtesting2 Linux - Security 2 05-04-2004 03:50 PM

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

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