Archive

Posts Tagged ‘RHEL’

Forgot root password – How to reset password?

November 3rd, 2008 iceman 1 comment


I had forgotten one of my Red Had Enterprise Linux 5 server’s root password.
What can I do? How can I retrieve or reset the root password?
After googling and tried one of the solutions.
My problem was solved.

The solution is boot into single-user mode from GRUB and then change the root password.

Below is the steps to reset root password.

1. Reboot your workstation, wait until the GRUB menu screen come out.
2. Select the desired kernel you want.
3. Press the ‘e‘ key to edit that entry.
4. Use the arrow keys to navigate to the kernel line
(for example: kernel /vmlinuz-2.6.x-x ro root=LABEL=/ rhgb quite)
5. Add the argument ‘single‘ to the end of the line and then press ENTER.
6. Press the ‘b‘ key to boot.
7. After booting, type ‘passwd‘ to change your root password.
8. The end, reboot your workstation and done.

Of cause, there are many others way to retrieve your root password.
The solution I give here is only one of the solutions.
Hope, my sharing can help you.

Related posts