0% found this document useful (0 votes)
80 views1 page

Reset Root Password in RHEL 4

The document provides instructions for resetting the root password in Red Hat Enterprise Linux 4 if it is forgotten. It describes booting into single-user mode by editing the GRUB boot options to add "single" and then resetting the root password from the shell prompt using the "passwd" command. Once complete, the system can be rebooted normally.

Uploaded by

Teferi Lemma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views1 page

Reset Root Password in RHEL 4

The document provides instructions for resetting the root password in Red Hat Enterprise Linux 4 if it is forgotten. It describes booting into single-user mode by editing the GRUB boot options to add "single" and then resetting the root password from the shell prompt using the "passwd" command. Once complete, the system can be rebooted normally.

Uploaded by

Teferi Lemma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

6/15/2016 Forgotten root Password

Red Hat Enterprise Linux 4: Red Hat Enterprise Linux Step By Step Guide
Prev Chapter 14. Frequently Asked Questions Next
14.2. Forgotten root Password
Help! I forgot my root password. How do I log in now?
You can log in using single­user mode and create a new root password.
To enter single­user mode, reboot your computer. If you use the default boot loader, GRUB,
you can enter single user mode by performing the following:

1.  At the boot loader menu, use the arrow keys to highlight the installation you want to
edit and type [A] to enter into append mode.
2.  You are presented with a prompt that looks similar to the following:

grub append> ro root=LABEL=/

3.  Press the Spacebar once to add a blank space, then add the word single to tell
GRUB to boot into single­user Linux mode. The result should look like the following:

ro root=LABEL=/ single

4.  Press [Enter] and GRUB will boot single­user Linux mode. After it finishes loading, you
will be presented with a shell prompt similar to the following:

sh­2.05b#

5.  You can now change the root password by typing

passwd root

You will be asked to re­type the password for verification. Once you are finished, the
password will be changed. You can then reboot by typing reboot at the prompt; then
you can log in to root as you normally would.

Prev Home Next


Frequently Asked Questions Up Forgotten user Password

https://access.redhat.com/documentation/en­US/Red_Hat_Enterprise_Linux/4/html/Step_by_Step_Guide/s1­q­and­a­root­passwd.html 1/1

You might also like