Visit Jeremy's Blog.
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 05-13-2012, 12:20 PM   #1
LQ Newbie
Registered: May 2012
Location: Somervilee, NJ, USA
Distribution: bash
Posts: 1

Rep: Reputation: Disabled
RHEL 6 Root user password problem

I installed RHEL6 on my laptop but I cannot remember the root user password. How can I bypass it and create another one? Thank you.
Old 05-13-2012, 12:35 PM   #2
LQ Newbie
Registered: May 2012
Location: UK
Distribution: RHEL - newbie
Posts: 18

Rep: Reputation: Disabled Root Password
What can you do if you forget your root password? To reset it to a different password, boot into rescue mode or single-user mode, and use the passwd command to reset the root password.
36.1.2. Booting into Rescue Mode
Rescue mode provides the ability to boot a small Red Hat Enterprise Linux environment entirely from CD-ROM, or some other boot method, instead of the system's hard drive.
As the name implies, rescue mode is provided to rescue you from something. During normal operation, your Red Hat Enterprise Linux system uses files located on your system's hard drive to do everything — run programs, store your files, and more.
However, there may be times when you are unable to get Red Hat Enterprise Linux running completely enough to access files on your system's hard drive. Using rescue mode, you can access the files stored on your system's hard drive, even if you cannot actually run Red Hat Enterprise Linux from that hard drive.
To boot into rescue mode, you must be able to boot the system using one of the following methods[12]:

By booting the system from a boot CD-ROM or DVD.
By booting the system from other installation boot media, such as USB flash devices.
By booting the system from the Red Hat Enterprise Linux installation DVD.

Once you have booted using one of the described methods, add the keyword rescue as a kernel parameter. For example, for an x86 system, type the following command at the installation boot prompt:

linux rescue

1 members found this post helpful.
Old 05-14-2012, 02:49 AM   #3
LQ Newbie
Registered: May 2012
Posts: 28

Rep: Reputation: Disabled
Long answer short, when you see the grub screen shouting at you "RedHat Linux 6.0 blah blah blah" in a redscreen, press down arrow, now you will be able to stop the count down.

Now, press "e" for editing, use your cursor to go to the last word in the selected grub. Provide a space and type "single" now, press enter and press "b"

you will be now in single user mode.

type passwd root
and give your new password. "remember your password this time, if not dont worry, repeat the steps again :P "

1 members found this post helpful.


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
GNOME: Gain privileges using current user's password instead of root's password maxkukartsev Fedora 5 02-10-2012 09:46 AM
[SOLVED] Problem changing the system-wide password for non-root user ntu929 Linux - Newbie 1 09-15-2011 04:56 AM
unique problem in resetting root password in suse linux in single user mode & rescue amit_kalipur Linux - Security 1 07-14-2009 01:41 PM
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
Cannot change root password (let alone standard user's password) jbottiger Red Hat 4 01-06-2009 08:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:32 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
Open Source Consulting | Domain Registration