LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-27-2008, 09:19 AM   #1
linuxjamil
Member
 
Registered: Dec 2005
Distribution: Fedora Core 5, Sun Solaris 8
Posts: 122

Rep: Reputation: 15
Wink How to set boot-loader password


Dear All

Plz tell how to set boot-loader password in linux from command prompt.
 
Old 02-27-2008, 09:36 AM   #2
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
Do some Googling

Hi,

From grub command prompt, Run md5crypt.
Code:
grub> md5crypt
Password: **********
Encrypted: <Encrypted Password>
Add following line to grub.conf
Code:
password --md5 <Encrypted Password>
Check page 9 of http://www.scribd.com/doc/14933/Secu...ub-Boot-Loader

Regards,
 
Old 02-27-2008, 09:46 AM   #3
haroldpga
LQ Newbie
 
Registered: Mar 2007
Location: Athens, GA
Distribution: Fedora
Posts: 7

Rep: Reputation: 0
It depends upon the boot loader you are using. With grub, you first need to create an encrypted password with the "grub-md5-crypt" command. You must be root to do this.

[root@mickey ~]# grub-md5-crypt
Password:
Retype password:
$1$XrTDO$u5L0Vx/NSj1UnuHVBsVkw/
[root@mickey ~]#

Next, edit the grub config file (in fedora this is /boot/grub/grub.conf) and insert the following line right after the "default" and "timeout" lines:

password --md5 $1$XrTDO$u5L0Vx/NSj1UnuHVBsVkw/

Be sure and use 'copy and paste' to get it exactly the same as was generated by the grub-md5-crypt command.

Hope this helps

Harold
 
  


Reply



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
RedHatLinux ,Recover lost root password with GRUB boot loader Ruzzell Linux - Security 5 01-07-2011 02:21 PM
LXer: Howto: Recovering grub boot loader password LXer Syndicated Linux News 0 02-22-2006 04:16 AM
cannot find Boot Loader password 3ti3nn3 Linux - General 9 07-27-2004 01:54 AM
set password to boot lilo ?? hitesh_linux Linux - Security 5 02-24-2002 12:41 PM
set password to boot lilo ? hitesh_linux Linux - General 2 02-22-2002 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:01 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
Open Source Consulting | Domain Registration