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

Notices


Reply
  Search this Thread
Old 08-29-2007, 02:52 AM   #1
Coimbra
LQ Newbie
 
Registered: May 2007
Posts: 20

Rep: Reputation: 0
lost password root


yeap,

I have lost the password. Yesterday I changed the password and today i don't remember.

Can i recovery password?

I have Red Hat Enterprise.

Thanks for advance
 
Old 08-29-2007, 02:57 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
Boot into rescue mode which is single user mode runlevel 1
type passwd
and enter the new root password.

Finish
 
Old 08-29-2007, 03:00 AM   #3
Coimbra
LQ Newbie
 
Registered: May 2007
Posts: 20

Original Poster
Rep: Reputation: 0
How can i boot in runlevel? or, what is the file to modify to boot in runlevel 1? Can i edit that modify with a user?


thanks for advance?
 
Old 08-29-2007, 03:04 AM   #4
invalidid
LQ Newbie
 
Registered: Aug 2007
Location: Germany
Distribution: Fedora, Slackware 13.0, Gentoo
Posts: 7
Blog Entries: 2

Rep: Reputation: 1
Hi!

I think someone has already posted the solution.
Please check out the similar threads.
 
Old 08-29-2007, 03:13 AM   #5
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
at the boot promt
remove rhgb quit and append init 1
if your grub is password protected then you'll be stucked...
that why It would be easier to
use the 1st install cd and boot with it into rescue mode.

Stop
 
Old 08-29-2007, 03:23 AM   #6
Coimbra
LQ Newbie
 
Registered: May 2007
Posts: 20

Original Poster
Rep: Reputation: 0
I have not cd,

I think than i have a big problem.

I go to search in this forum.
 
Old 08-29-2007, 03:47 AM   #7
invalidid
LQ Newbie
 
Registered: Aug 2007
Location: Germany
Distribution: Fedora, Slackware 13.0, Gentoo
Posts: 7
Blog Entries: 2

Rep: Reputation: 1
If you are able to burn a cd, you can try to boot from knoppix
and mount the hard drive, where your originally root directory is.

Then after you've mounted it successfully, you can perform a chroot (see man-page for further details) command to your original root.

After that execute "passwd" and the root password is changed.

Now you can reboot and login via root with the new password.
 
Old 08-29-2007, 04:19 AM   #8
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
1. is it red hat enterprise linux 2, 3, 4, 5 ?
or is it Red hat based Distri, like f.eg. Fedora, CentOS ?
2. how did you install it? Via NFS share ? or by a magic spell?
3. are you trying to do something unallowed?
4. download the 1st Install Media if it's a CD set or the DVD in most of the cases in red hat based distries they
supply also a rescue cd. which is nearly the same as booting with the install cd / dvd

or append the kernel option at the boot prompt
there will be option shown at the boot screen
is it lilo or is it grub?
grub will be I guess a for append
then a line is displayed which is editable.
it ends with rhgb quit
you'll have to remove the rhgb and the quit word and insert instead of this init 1^

thats it.
 
Old 08-29-2007, 05:12 AM   #9
Coimbra
LQ Newbie
 
Registered: May 2007
Posts: 20

Original Poster
Rep: Reputation: 0
I have:
* Grub, version 0.93
* Red Hat Enterprise Linux As (2.4.21-4.EL)
* Yo no lo instalé, es una máquina virtual que me han dejado. VMWARE
* How can i append the kernel option at the boot prompt?
 
Old 08-29-2007, 05:54 AM   #10
Coimbra
LQ Newbie
 
Registered: May 2007
Posts: 20

Original Poster
Rep: Reputation: 0
Sorry, I traslate my last post:

I have:
* Grub, version 0.93
* Red Hat Enterprise Linux As (2.4.21-4.EL)
* I didn't install it.
* it is install in a virtual machine (VMWARE).

* How can i append the kernel option at the boot prompt?
 
Old 08-29-2007, 05:57 AM   #11
Coimbra
LQ Newbie
 
Registered: May 2007
Posts: 20

Original Poster
Rep: Reputation: 0
I don't see the words "rhgb quit" by any site.

Where i have put the words "init 1^"?


thank you very much
 
Old 08-29-2007, 07:44 AM   #12
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
when you're at the grub boot loader menu list.
then you've got option's there.
What are these? Then I can tell you what you've to press.

Something like:

the one you want to start is highlighted
blafassel linux (kernel xyz)

then
(e) = to edit the commands before booting
(a) = to modify the kernel arguments before booting
(c) = for command-line (grub)

you'll have to choose (a) or similar
then a line will be presented where you can append commandos
like (init 1)

so for example thats what shown on my prompt in grub menu

CentOS-4 i386 (2.6.9-42.EL) <--- this is highlighted

I press (a) and this line occures

grub append> ro root=/ev/VolGroup00/LogVol00

and I just label init 1 at the End and press Enter to execute.

grub append> ro root=/ev/VolGroup00/LogVol00 init 1 (ENTER)

thats it. now It will boot into single user mode
ther just type
passwd and enter a new root pw.

FINISH -
no more further instructions from my site.
good luck

IF on your installation root is somewhere else than on a LVM which is in my case that DOESN't matter
JUST append like I did.
 
Old 08-29-2007, 08:13 AM   #13
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
If the OP did not install the system he/she should ask the person who did the install for the root password if he/she is allowed to use root.

How do we know that we are not teaching people illegally to hack a Linux system that doesn't belong to the non-root users?
 
Old 08-29-2007, 08:15 AM   #14
Coimbra
LQ Newbie
 
Registered: May 2007
Posts: 20

Original Poster
Rep: Reputation: 0
"odcheck", Thank you very much. I have find the solution. I hava can change root password's.

I have to find this page:

http://kbase.redhat.com/faq/FAQ_35_2908.shtm



Thank you very much "odcheck" again.
 
Old 08-29-2007, 08:18 AM   #15
Coimbra
LQ Newbie
 
Registered: May 2007
Posts: 20

Original Poster
Rep: Reputation: 0
Is there any method to I can not change the password? root password's.
 
  


Reply


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
Lost Root Password Mr.Smith Mandriva 2 11-28-2006 12:20 AM
Lost root password Elong Debian 4 11-18-2006 06:35 AM
Lost Root Password ThaMainframe Mandriva 4 11-12-2004 06:27 PM
lost root password brandonAd Linux - Security 7 08-03-2003 04:23 AM
lost root password dvong3 Linux - Newbie 2 06-13-2003 10:34 AM


All times are GMT -5. The time now is 06:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration