When the root password is forgotten, a new password can be created by booting Linux into the single user mode first. To boot into the single user mode, uses the following steps:
System using Grub boot loader
grub edit> kernel /vmlinuz-2.6.12-11_FC3aslsmp ro root=LABEL=/ single
When the shell prompt is available, run 'passwd' and enter a new root password. Afterward, run 'reboot' to restart the system.
System using LILO boot loader
At the LILO menu, press Ctrl-X to acess the command prompt. Next enter 'linux single' and press Enter key to boot into the single user mode. When the shell prompt is available, run 'passwd' and enter a new root password. Afterward, run 'reboot' to restart the system.