Image

Knowledge base → Resetting root password in Centos 7 and Centos 6

[Virtual servers]
Date of publication: 03.06.2023

To reset the root password in centos you will need to get and configure the VNC client. Then, in the client menu, restart the server by pressing the Ctrl + Alt + Del key. When loading the server counts down a few seconds, press Esc to stop the download.


Next, to edit the download you will need to press "e".

Find the line that starts with "linux", change the "ro" option to "rw", remove the "rhgb" and "quiet" options; add "rd.break enforcing=0" at the end of the line as shown in the screenshots.



Press Ctrl+x to apply and start the system. After downloading, you will need to run the password reset commands:

chroot /sysroot
passwd root
touch /.autorelabel
exit
reboot


For CentOS 6

passwd root
reboot


Ready.





No Comments Yet