How To Reset Root Password in single user mode
To Reset Root Password in RHEL/CentOS and Fedora
In this article, we will learn some simple steps to reset forgotten root password in RHEL, CentOS and Fedora Linux. There are various ways to reset root password and we are going to follow Booting into single user mode to reset the password.
Take backup of your data before start the password resetting.
STEP 1:
Boot your Computer and Interrupt while booting at GRUB stage hitting arrow keys or space bar.

STEP 2:
Type ‘ a’ to modify kernel argument and you can cancel it by typing ESC key.

STEP 3:
Type command runlevel to know your run level. In this 1 S state that you are in a single user mode.

STEP 4:
Type passwd command without username and press Enter. Now enter the new root password and re-type. User has now reset the password successfully.

After the password is changed, type the following command to switch to GUI.
[root@linuxhelp /]# init 5
STEP 5:
Now login by entering the username root and type the newly created password, now your machine will be successfully logged in.


Comments ( 0 )
No comments available