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