In this tutorial we will show you an easy way to reset forgotten root password in CentOS. You can use this article to reset the forgotten root password in CentOS 6.0/6.1/6.2/6.3/6.4/6.5 and Fedora 16/17/18/19/20. First, to reset the root password we must boot the linux system in single user mode.
How to Reset Forgotten root Password in CentOS
In order to reset forgotten root password in CentOS 6.0/6.1/6.2/6.3/6.4/6.5 and Fedora 16/17/18/19/20 follow below steps.
Step1: You must enter grum menu first. Boot your CentOS linux system and press esc key when you see the message “Press any key to enter the menu”

Step 2: Now, we need to modify our kernel argument. select your operating system and pres ‘a‘ to do so.You can cancel by pressing ‘ESC‘ key.

Step 3: Now you must change to single mode in kernel configuration, there are two methods to change to single mode. You can do this by using either "1" or "S". Enter after done.

Step 4: After reboot, you can change root password by typing ‘passwd‘ command in command prompt.

Step 5: Reboot your system and login using the new password.
Congratulations! You have learned How to Reset Forgotten root Password in CentOS.
If you are facing any problem with the steps, fell free to comment here. We will help you to solve the issue.