Reset Root Password in RHEL/CentOS and Fedora on GRUB menu

//Reset Root Password in RHEL/CentOS and Fedora on GRUB menu

Reset Root Password in RHEL/CentOS and Fedora on GRUB menu

In this post We will guide you simple steps to reset root password for RHEL, CentOS and Fedora Linux with example. There are various ways to reset root password which are.

  • Booting into single user mode.
  • Using boot disk and edit passwd file.
  • Mount drive to another system and change passwd file.

Here, in this article we are going to review “Booting into single user mode” option to reset forgotten root password.

Cautious: We urge to take backup of your data and try it out at your own risk.

STEP 1. Boot Computer and Interrupt while booting at GRUB stage hitting ‘arrow‘ keys or “space bar“.

centos-password-reset1

Booting GRUB Stage

STEP 2. Type ‘a‘ to modify kernel argument. Anytime you can cancel typing ‘ESC‘ key.

Modify Kernel Argument

email-marketing-service

STEP 3. Append 1 at the end of “rhgb quiet” and press “Enter” key to boot into single user mode.

Append 1 at the Screen

Screenshot_3

STEP 4. Type command “runlevel” to know the the runlevel where you are standing. Here “1 S” state that your are in a single user mode.

Screenshot_4

Type Command runlevel

STEP 5. Type ‘passwd‘ command without username and press ‘Enter‘ key in command prompt. It’ll ask to supply new root password and re-type the same password for confirmation. “Your are Done” Congratulation!!!

Screenshot_5

Type passwd Command

By |2018-09-06T10:55:31+00:00September 4th, 2018|Linux Dedicated Server|0 Comments

About the Author:

Leave A Comment

4 × three =