How to Change User Password in Linux

February 10, 2023 / How-to Guide

In this guide, you will learn how to change a user’s password in Linux. To do this, the first step is to access the VPS using SSH.

Follow the steps:

  1. Use this command to update your password once you are in the Linux command line.
    Passwd
  2. You will need to enter your current password if you are not logged in as the root user.
  3. The new password will then need to be entered twice in the command line.
  4. The following notification should appear to confirm that your password has been updated:
    passwd: password updated successfully
  5. The root password will be changed if you do not specify a user account while logged in as the root user. So, do not rush anything.

That is it! We hope you understood everything very well. Please contact our support staff for assistance.

Spread the love