Linux serverNETWORK ADMINISTRATIONS

How to Reset Root Password On CentOS 7

How to Reset Root Password On CentOS 7
Steps:

Step #1 In the boot grub menu select option to edit type “e”

Step #2 Go to the line of Linux 16 and change ro with rw init=/sysroot/bin/sh

Step #3 Press Control+x to start the system in single user mode

Step #4 Access the system with this command
chroot /sysroot

Step #5 Reset the password with command
passwd

Step #6 Update selinux information
touch /.autorelabel

Step #7 Exit chroot
exit

Step #8 Reboot your system
reboot -f

That’s it.

how to recover root password in centos 7
how to reset root password for centos
how to reset root password in centos
how to reset root password in centos 7
how to reset root password on centos 7
how to reset root password of centos
how to reset the root password on centos
crack password centos

source

centos 7

Leave a Reply

Your email address will not be published. Required fields are marked *