In this article from our series of RHCE exam guide we will learn how to remove root password.
You are new System Administrator and from now you are going to handle the system and your main task is Network monitoring, Backup and Restore. But you donot know the root password. Change the root password to redhat.
When System Successfully boot, it will ask for username and password. But you don't know the root's password. To change the root password you need to boot the system into single user mode. You can pass the kernel arguments from the boot loader.
Reboot system with alt + ctrl + del key combinations
Press space bar on boot loader screen
This will drop you in OS selection screen
Select linux (If you have multibooting then select linux)
From grub boot loader screen select kernel parameter line and press e
This change will tell to boot system in single user mode.
After loading essential modal kernel will drop in rescue mode with root prompt
now run passwd command to reset root password
and init 5 command to run system in graphic mode or you can just reboot system to on its default run level