Reset Root Password in CentOS

From Brian Nelson Ramblings
Revision as of 04:00, 23 March 2014 by Brian (Talk | contribs) (Booting into Single User Mode)

Jump to: navigation, search

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.