Reset root password

Below are the steps to follow to reset root password

Step 1: Once the system boots instead of selecting the kernel to boot in press “e”

boot_screen

Step 2: Add “init=/sysroot/bin/bash” at the end of linux16 as shown below

Step2

Step 3: Press Ctrl + x and you will end with the prompt.

Step3

Step 4: Execute below commands

Step4

Step 5: You should see the successful message after setting thew new root password.

Reboot the system

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s