How to Reset Your Lost Root Password in CentOS

How to reset your root password — step-by-step

mount -o remount,rw /sysroot/
chroot /sysroot
passwd root
touch /.autorelabel

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Thanoshan MV

Thanoshan MV

My notes, findings, thoughts and investigations.