23 May, 2025

Office Address

123/A, Miranda City Likaoli
Prikano, Dope

Phone Number

+0989 7876 9865 9

+(090) 8765 86543 85

Email Address

info@example.com

example.mail@hum.com

CentOS CentOS 7.x OS

How To Reset Root Password On CentOS 7

The way to reset the root password on centos7 is totally different from Centos 6. Let me show you how to reset the root password in CentOS 7.

1 – In the Boot Grub Menu Select Option to Edit

2 – Select Option to edit (e)

3 – Go to the line of Linux 16 and change ro with “rw init=/sysroot/bin/sh”

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

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

That’s it. Enjoy.

About Author

Sysman

Leave a Reply

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