linuxnewbieguide.org
How to reset a forgotten root password RHEL / CentOS 7 — The Ultimate Linux Newbie Guide
Ever wondered how to reset your root password on a system if you are completely forgotten it? Up until recently, you could simply change the GRUB kernel options to boot into single user mode, or tell init to spawn a shell with /bin/bash or similar. With Red Hat Enterprise Linux 7 or CentOS 7, the …