How to reset the root password on Centos 7
help.serversaustralia.com.au › s › articleNov 13, 2019 · change it to "rwinit=/sysroot/bin/sh" Then pressControl+xto start Centos 7. It will boot straight to a command line. From there, you need to run: chroot /sysroot then passwd. It will prompt you for a new password. Once you've set it, just reboot the server again. When the server comes back online, it'll have the new password for the rootaccount.