Knowledgebase - Reset forgotten root password with Centos 5/6

Our Client Portal

Portal Home > Knowledgebase > Dedicated Servers > Reset forgotten root password with Centos 5/6

Reset forgotten root password with Centos 5/6

Please Note: In order to reset your Centos 5/6 password you will need KVM access to adjust your servers boot loader menu!

1.) At the boot loader menu, use the arrow keys to highlight the installation you want to edit and type [A] to enter into append mode.

2.) You are presented with a prompt that looks similar to the following:

grub append> ro root=LABEL=/

3.) Press the Spacebar once to add a blank space, then add the word single to tell GRUB to boot into single-user Linux mode. The result should look like the following:

ro root=LABEL=/ single

4.) Press [Enter] and GRUB will boot single-user Linux mode. After it finishes loading, you will be presented with a shell prompt similar to the following:

sh-2.05b#

5.) You can now change the root password by typing

passwd root

 

Add to Favourites Add to Favourites

Was this answer helpful?

Print this Article Print this Article

Also Read

Recent News
Knowledgebase Articles
Transferring email accounts from one cPanel server to another is a simple proces...
It is now possible to temporarily suspend the monitoring of Managed Dedicated Se...
Please Note: In order to reset your Centos password you will need KVM access to ...