Difference between revisions of "Reset Root Password in CentOS"

From Brian Nelson Ramblings
Jump to: navigation, search
(Booting into Single User Mode)
 
Line 34: Line 34:
  
 
And reset your password, then reboot your system and login with new root password.
 
And reset your password, then reboot your system and login with new root password.
 +
 +
[[Category:Centos]]

Latest revision as of 00:18, 30 March 2014

Reset Root Password in CentOS/RHEL

We will show you how to reset/bypass the root passwords on a CentOS/RHEL/Fedora.

There are multiple ways to rest the root password:

  • Booting into Single user mode
  • Mount the Drive and redit the password file
  • Use a boot disk and edit the password file

We are going to use the easiest and by for the most convenient method "Booting into Single User Mode"

Booting into Single User Mode

Boot up the Server/Computer and hit any key while booting the GRUB stage.

Reset Root Password Centos / RedHat / Fedora


Now you will want to type 'a' to modify the kernel arguments


Reset Root Password Centos / RedHat / Fedora


You will then want to append the number 1, to boot into Single User Mode


Reset Root Password Centos / RedHat / Fedora


Now you will see the command prompt, just type in

passwd

And reset your password, then reboot your system and login with new root password.