Sunday, May 19, 2013

Reset Root Password on Linux (RHEL, Ubuntu)

Try and enter the run-level 1, if you already know it then follow the step 4 below.

1. Stop the system at the Grub Screen.
2. Use the arrows to select the boot entry you want to modify,  press e to edit the entry.
3. Use the arrows to go to kernel line , press e to edit this entry , at the end of the line add the word single

Press ESC to go back to the parent menu, press b to boot this kernel

4. Run passwd command to reset the password.

No comments: