Changing the Linux Root Password

This article explains how to change the root password in Linux.

Guided Steps
  • Log in to the desired server as the root user.

  • To set a new password, enter the following command:
    [root@localhost ~]# passwd

  • Enter the desired password and repeat it.

The password is now changed.