Professional Documents
Culture Documents
How To Reset Root Password With GRUB On Oracle Linux (Doc ID 431260.1)
How To Reset Root Password With GRUB On Oracle Linux (Doc ID 431260.1)
In this Document
Goal
Solution
Applies to:
Linux OS - Version Oracle Linux 4.4 to Oracle Linux 5.3 [Release OL4U4 to OL5U3]
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Linux x86
***Checked for relevance on 06-Nov-2013***
Goal
If somehow you have lost the password for the system administrator user "root" you will need to
reset it. This document provides a practical method to do that if you have configured system with
the GRUB boot loader during the OS installation.
Solution
It procedure is to boot the system in the "single user" mode and to be able to do that you must be
on the system console. Please follow the steps below:
6. At the end of the line press space bar once, then add text single or 1:
or
8. This will bring you to a shell prompt and now you can use the passwd command to change the
password for the "root" account:
# reboot
and after system has been completed booting you can logon with the new root password.