--- layout: page category-page: intermediate category-title: Intermediate commands tags: password change pwd user author: Fabiano Fenini title: passwd previous-page: "" --- The passwd command allows us to change or to assign a password of authentication of an user currently in the system.
When the user doesn’t have particular privileges, he is only able to change is password, while the root user has the possibility to change also other users’ passwords.
The command name stands for password.

Usage

The default passwd command syntax is:
passwd [flags]  [user]
Where [flags] are the passwd flags, read below for more info, the parameter [user] can only be specified by the root user. If no user is provided, passwd proceed to set the password of the user who uses this command. You will first be asked to enter the current user password.

Flags

Here are some of the most common passwd flags: