How to Change a Unix Password

To change your Unix password, use the `passwd` command.  Unless you are the “root” user, you will need to know your current password to set a new one.  If you have forgotten your current password, you will need to contact the “root” user to have your password reset.

Here is an example of the user “will” changing his Unix password:

$ passwd
Changing local password for will
Old Password:
New Password:
Retype New Password:

Rate this article:

Last updated .

Follow Will.Spencer on