How to change root password in Oracle Linux in Virtualbox?

Follow these three simple steps to change the root password in Oracle Linux:

1. Boot the computer with Linux Installation DVD.

2. Enter into Linux Rescue mode by enering the following command on the first boot screen:

linux rescue

3. When the sh prompt is reached, enter the following commands to change root password.

#chroot /mnt/sysimage
#passwd

4. Now take out the Linux Installation DVD and reboot, and then you will be able to login as root with newly set password.

Environment

  • Oracle Linux 5.7 x86-64
  • Oracle Virtualbox
FRM-92050: Failed to connect to the Server
How to upgrade from R12.2.2 to R12.2.3 in ten step...