Question: how to change forgotten root password in centos 7?
Answer: Step 1: Access the Command Line (Terminal) Right-click the desktop, then left-click Open in Terminal. Or, click Menu > Applications > Utilities > Terminal. Step 2: Change the Password. At the prompt, type the following, then press Enter: sudo passwd root.