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.


Did this article help you?

Your feedback helps us to further improve our services. To leave feedback, log in to your IONOS account by clicking on the login button at the top right. You can then submit a rating below the article.