How to Reset or Change the Root Password in Linux CentOS 7

Changing the Root Password in CentOS7

Changing a password in CentOS is almost identical to changing it in Ubuntu.

Step 1: Change the Password

At the prompt, type the following, then press Enter:

sudo passwd root

The system should prompt you to enter your existing password. Do so, then follow the prompts to enter and confirm a new root password.

Published on: 7/30/20, 9:28 AM