How to Change User Password in Linux

You are here:
Estimated reading time: < 1 min

Change Your User Password

To change your user password run below command:

$ passwd

Change Another User’s Password

To change another user’s password you must logged as root user, Use below command to change another user’s password:

$ sudo passwd hostonion

Note: Replace hostonion with your user name!

Was this article helpful?
Dislike 0
Views: 22