How can we help you today?
lifebuoy-100

Do you need help with this?

Our team of experts are standing by to assist. Just open a ticket and we'll lend you a hand.

Stay in the know

Enjoy exclusive access to discounts and knowledgeable tips.

We don’t spam! Read our privacy policy for more info.

< All Topics
Print

How to change password on Linux

Table of Contents

You may occasionally need to change a user or root password on your Linux server. This article will guide you through changing your password.

Changing user password as user

To change a password as the user you want to change the password for, just run passwd and press enter. You will be prompted to change your password:

Changing another user’s password

To change the password of another user, run the command passwd <username> and press enter. If you’re not running as the root user, type in sudo passwd <username> and press enter. You’ll then be able to change the password of the user.