Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-20-2004, 05:08 AM   #1
Registered: Jan 2004
Location: bangalore
Posts: 45

Rep: Reputation: 15
Unhappy forgot root passwd

hi all

I am Using RedHat 9 version . I have forgotten my root passwd... i am using GRUB bootloader....

so is there anyway to solve the problem without reinstalling the OS( I dont want to reinstall it, since i have important files saved in root...)... i am in a dilema and seeking for help....

thanks in advance....
Old 09-20-2004, 05:37 AM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
You can fix this by booting off a rescue CD (or a live distro CD), and mounting the root filesystem somewhere.

You can then edit the /etc/passwd file and remove the encrypted password for root (so you get a line starting with root:: instead of root:gibberish:)

Save the file, unmount the root filesystem and reboot. You can then log in as root with a blank password, and set the password to something else with the
Old 09-21-2004, 03:07 AM   #3
Registered: Nov 2003
Location: india, New Delhi
Distribution: Red Hat Linux
Posts: 62

Rep: Reputation: 16
Hi sanu, there are many simple ways of doing this, the one mentioned by rjlee is also one of them..

well if have made a bootable floppy then its very simple, just boot using that and then

1. Boot using the bootalble floppy which you may have created.
2. it will give you a boot prompt
like boot:
3. type linux single
4. after showing lots of messages a prompt will be displayed to you like
5. here you have to type
6. you now have to enter a new password, hit enter
7. then you have to retype the password.
8. you are done.
9. now restart the machine by typing
reboot or shutdown -r now
10. you are all done now you can log in as root..

well if you dont have rescue disk as mention by rjlee
or even the boot floppy as i mentioned then.. dont worry

You need something called the loadlin. I am assuming that you have windows 9x, since it needs real dos mode to run you can get that from the linux cd you installed or anywhere from the net.

It has a file called VMLINUZ , very important. now you have to just start the batch file provided in it you can see its

a .bat file.

In this file the path of the loadlin executable is set and also the required parameters

you have to set the parameters of the .bat file by right clicking on it and in the advanced properties set it to run in MS-DOS mode.

well you are all done, now just double click the .bat file your machine will reboot and then as rjlee told you , break the pass....

ok take care


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
Forgot my root passwd k1ll3r_x SUSE / openSUSE 23 04-06-2005 01:44 PM
forgot root passwd urgent nimaelec1 Red Hat 4 02-17-2005 12:37 PM
forgot root passwd sanu Linux - Newbie 1 09-20-2004 05:45 AM
FORGOT root passwd WannaLearnLinux Linux - Newbie 5 03-30-2004 01:36 AM
I have forgot my linux root passwd shankha Linux - Security 2 09-13-2003 07:13 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration