Changing the root password on Centos 6 is easy. But provided that you know the current password. In this tutorial, we will look at the procedure for changing the password of the current user on the Centos 6 operating system.

Let's assume that you decided to change the password, the first thing you need to do is to log in to the console as root. Next, enter the command to change the password.
# passwd
Once the command is entered, you should see a dialog box that should display the following lines:
Changing password for user root.
New UNIX password:
Now we can enter a new password. There is a command for this purpose:
Retype new UNIX password:
Finally, for confirmation, we wait for the message:"passwd: all authentication tokens updated successfully."
That's it - the password on the Centos 6 operating system has been successfully changed.