passwd command
The passwd command changes the password for the user.
Syntax
The syntax for the passwd command is:
passwd [options] [user]
Options
Option | Description |
---|---|
-s | Displays password information. |
Running passwd with no options will change the password of the account running the command. You will first be prompted to enter the account's current password:
If it is correct, you will then be asked to enter a new password:
...and to enter the same password again, to verify it:
If the passwords match, the password will be changed.
Comments
Post a Comment