Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 07-11-2002, 03:16 PM   #1
Registered: Jan 2002
Location: PA, USA
Distribution: Fedora 12
Posts: 69

Rep: Reputation: 15
Lost or Missing Root Password


Tried to search the net for a solution before posting, but no go...

Few weeks ago I noticed the terminal program would not come up under Root. It did come up under my regular user ID and password.

Then, last week the Root password stopped working. The regular user account still works ok.

I'm using RH 7.3 with Grub for booting.

Can anyone help me out with commands get to Root back up?


Old 07-11-2002, 03:21 PM   #2
Registered: Dec 2001
Location: Netherlands
Distribution: redhat suse mandrake freebsd
Posts: 344

Rep: Reputation: 30
boot into runlevel 1 or single
type passwd
enter new root password
there you go

i dont use grub for my lilo hitting esc
entering linux runlevel 1 does the trick
Old 07-12-2002, 07:39 PM   #3
Registered: Jan 2002
Location: India
Distribution: Suse , Mandrake
Posts: 121

Rep: Reputation: 15
You have to boot into single user mode and follow the steps mrGee has described. Here is a document which tells you how to do a single user boot using grub.
Old 07-14-2002, 08:41 AM   #4
Registered: Jan 2002
Location: PA, USA
Distribution: Fedora 12
Posts: 69

Original Poster
Rep: Reputation: 15
Thumbs up

Yes, I used the RH site. It worked.

At Grub, select Linux OS and hit 'e' for edit.
next screen select the line w/ Linux Kernel and hit 'e'.
next screen select the line w/ 'boot' and add 'runlevel 1' to the end of the line the hit 'b' for boot.

I got an sh# prompt. I entered 'passwd', then just followed the instructions.



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
root password is lost!!! :( alaios Linux - General 3 11-07-2005 05:48 AM
Lost root password amirdhagopal SUSE / openSUSE 13 02-10-2005 12:09 AM
Lost Root Password ThaMainframe Mandriva 4 11-12-2004 05:27 PM
Lost root Password us06154 Linux - Newbie 17 08-14-2003 04:08 PM
lost root password brandonAd Linux - Security 7 08-03-2003 03:23 AM

All times are GMT -5. The time now is 10:00 AM.

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