LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-03-2008, 01:08 PM   #1
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
how to change boot loader password


hello help me to change my grub password to edit the grub menu,I forgot it .I want to change the grub password without logging in as root user as i forgot my root password.
so i want to reset my root password by entering into the single user mode by editing the grub menu.but to to edit the grub menu it is required to give the password of grub on the menu page.so i wanna reset that password to reset the root password.help me plzzzzzzzzzzz...

Last edited by divyashree; 05-03-2008 at 08:00 PM.
 
Old 05-03-2008, 01:27 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
in your /boot/grub/grub.conf file you'd have lines in each entry defining a password, e.g. " password --md5 $1$w7Epf0$vX6rxpozznLAVxZGkcFcs." just use md5crypt or a similar tool to change those strings. you can also get the encryption strings by running the "grub" command inside linux and using the md5crypt command there.
 
Old 05-04-2008, 04:06 AM   #3
digvijay.gahlot
Member
 
Registered: Mar 2008
Posts: 53

Rep: Reputation: 15
As you have lost both the grub password and root password. You can't edit grub.conf by logging in as another user. So nothing can be done as far as i know, if you get a solution plz share with us.
 
Old 05-04-2008, 04:18 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
oh yes, i didn't see that bit, my bad. So use a live cd, e.g. your ubuntu installation CD, and mount the filesystems there, edit grub.conf in the equivalent location and change / remove the passwords there.
 
  


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
How i can disable boot-loader password linuxjamil Linux - Hardware 2 02-27-2008 02:33 PM
How to set boot-loader password linuxjamil Linux - Server 2 02-27-2008 09:46 AM
Cannot change boot loader the1wraith Fedora 2 10-30-2005 10:52 AM
cannot find Boot Loader password 3ti3nn3 Linux - General 9 07-27-2004 01:54 AM
Change boot loader meeshka Linux - Software 2 09-27-2003 06:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:02 PM.

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