Reset Your Linux Root Password

A system administrator can easily reset passwords for users who have forgotten theirs. But what happens if the system administrator forgets the root password? This guide will show you how to reset a lost or forgotten root password on a Red Hat-compatible system.
Overview
Please note, if the entire system hard disk has been encrypted with LUKS, you will need to provide the LUKS password when prompted. Also, this procedure is applicable to systems running systemd, which has been the default init system since Fedora 15, CentOS 7, and RHEL 7.