CENTOS 7 ROOT PASSWORD RESET

1 – Go to the boot grub menu select option to edit i.e, press the key “e”

Selection_003

2 – Go to the word “ro” as shown in the screen below

Selection_005

3 – Change “ro” to “rw init=/sysroot/bin/sh” as shown below

Selection_006

4 – Now press Control+x to start on single user mode.

Selection_007

5 – Now access the system with this command.

chroot /sysroot

6 – Reset the password.

passwd root

7 – Update selinux information

touch /.autorelabel

8 – Exit chroot

exit

9 – Reboot your system

reboot
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 )

Google+ photo

You are commenting using your Google+ 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 )

w

Connecting to %s