[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Linux in General  |  Linux Tutorials & How To's  |  Topic: Breaking/resetting the GRUB password
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: Breaking/resetting the GRUB password  (Read 5320 times)
0 Members and 1 Guest are viewing this topic.
h4ck3r
Linux Noob !
*
Offline Offline

Posts: 14


View Profile WWW
« on: June 18, 2005, 08:59:40 AM »

===================================================
METHOD 1
===================================================
HOW TO RESET UR ROOT PASSWORD IF U FORGET IT

While Booting ( Redhat )   just press "e" in GRUB
u will find 3 lines of code..
Goto to the 2nd line press "e"again and type "1" in the end
 then press ENTER..
Then press "b" and it will boot you into your shell..
Just type "passwd" and change ur ROOT password...
dont need to know the old one..
===================================================
METHOD 2
===================================================
"I, uh, forgot the root password"

Let's look at recovering the root password from the boot loader. If you're using GRUB, then, as GRUB loads up, highlight the Red Hat Linux entry on the GRUB menu and then press [E] to edit the boot configuration. Locate the following line, something that looks like this:

kernel /boot/vmlinuz-2.4.20-0.70 root=LABEL=/hdc=ide-scsi

Type the number '1' at the end. Doing so boots the PC into run level 1-single user mode, where you're automatically logged in as root. This done, type 'passwd' at the prompt. You can enter a new password here.
===================================================
METHOD 3
===================================================
Question.
I am doing a project on Linux platform. Someone has added the GRUB password to the computer on which I am working and has also changed the root password. I can crack the root password, if there is no Grum password, from the initial screen (i.e. from the init 1); but with the GRUB password. While reading LinuxForYou, I saw your section and thought you may be able to help.

Answer.
 To break the GRUB start-up password, follow the steps given below:

1. Boot the system with the first Linux CD. At the boot prompt, type linux rescue to switch to rescue mode. In rescue mode you will be asked if similar steps should be followed, which need to be followed in the installation. Once you get the # prompt, type the following command:

# chmod /mnt/sysImage

2. Edit the grub.conf file and remove the passwd line from the file. Save the file and exit.

3. Once your machine reboots, you will be able to start your Linux OS in the usual manner.
===================================================

That's all folks...
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2215


View Profile
« Reply #1 on: June 18, 2005, 10:15:08 AM »

Cool.. I will sure tell many people about who keeps on forgetting .
Logged
h4ck3r
Linux Noob !
*
Offline Offline

Posts: 14


View Profile WWW
« Reply #2 on: June 18, 2005, 12:53:10 PM »

Thanks
Logged
haronet
New Member

Offline Offline

Posts: 1


View Profile
« Reply #3 on: June 21, 2005, 10:09:14 PM »

just bought a PC with Linux already installed on it.  I tried to go into the Root directory and type # SU
and then it requires a password, i know this sounds like a dumm question where would i find the password so i can get into the root dir.
any help i'd appreciate it.
Logged
h4ck3r
Linux Noob !
*
Offline Offline

Posts: 14


View Profile WWW
« Reply #4 on: June 22, 2005, 08:49:40 AM »

Ask the firm for the root password which they supplied during installation.
Note it down. Once u are ready
goto terminal and login as superuser

Now type passwd followed by a carriage return.
Code:

[root@localhost root] passwd


Now it will ask the old passwd, enter it and enter a new password and then confirm the new password and press enter.

You have changed the root password for Linux

BTW , Read the rules as this isnt the place to ask questions.  Smiley
Logged
Stuart36
Linux Noob !
*
Offline Offline

Posts: 4


View Profile
« Reply #5 on: March 13, 2007, 01:04:44 AM »

Cheesy awesome...ran across this post and thought it was worth printing out for future reference....never know when it might come in handy.  :wink:
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Grub Linux Installation Support madeel 1 1036 Last post June 23, 2005, 02:18:44 AM
by Ricky
GRUB UPGRADE Linux Servers Support vlinux1 1 892 Last post August 11, 2005, 01:00:09 PM
by Ricky
GRUB error Os Talk deven_01 2 1109 Last post September 08, 2005, 07:19:27 AM
by neo
Change Grub Password Linux Installation Support shipoin_97 1 820 Last post November 28, 2005, 11:12:58 PM
by Ricky
Set GRUB Password Linux Application Ujjwol 1 899 Last post June 04, 2007, 08:52:50 AM
by Ricky
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2008, 05:47:54 PM

Login with username, password and session length
Navigation
Recent Discussions
[Today at 02:53:39 AM]

[Today at 02:45:38 AM]

[December 03, 2008, 10:18:57 AM]

[December 02, 2008, 11:32:02 AM]

[November 29, 2008, 02:23:49 PM]

[November 29, 2008, 02:14:14 PM]

[November 29, 2008, 04:00:36 AM]

[November 28, 2008, 07:05:28 AM]

[November 28, 2008, 07:04:39 AM]

[November 28, 2008, 06:58:16 AM]
Members
Total Members: 6262
Latest: abhijitabhijit
Stats
Total Posts: 8290
Total Topics: 2261
Online Today: 19
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 8
Total: 8
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc