1
Author – A.Kishore/Sachin
http://appsdba.info
Step By Step Instructions to reset root password in OEL 5.5
This document describes the steps to reset root password in Linux OEL 5.5 ,if we forget the
root password.
Step 1 : Restart Linux Machine
Following screen will appear with a prompt that looks similar to the following:
If we use the default boot loader, GRUB, we can enter single user mode. To do so, at
the boot loader menu, use the arrow keys to highlight the installation we want to
edit and type [a] to enter into append mode.
Step 2 : Press the Spacebar once to add a blank space, and then add the word single
to tell GRUB to boot into single-user Linux mode. The result should look like
the following:
Grub append> ro root=LABEL=/ rhgb quiet / single
2
Author – A.Kishore/Sachin
http://appsdba.info
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-3.2#
Step 3 : We can now change the root password by typing the below command
passwd root
We will be asked to re-type the password for verification. Once it is finished, the
password will be changed.
Now we can restart the machine by typing init 6, this command will restart
immediately