passwd

Name

passwd -- change user password

Synopsis

passwd [-g] [-r|R] group
passwd [-x max] [-n min] [-w warn] [-i inact] name
passwd {-l|-u} name

Description

passwd changes passwords for user and group accounts. A normal user may only change the password for their own account, the super user may change the password for any account. The administrator of a group may change the password for the group. passwd also changes password expiry dates and intervals.

Options

-g

Change the password for the named group.

-r

Used in conjunction with the -g option to remove the current password from the named group.

-R

Used in conjunction with the -g option to restrict the named group for all users.

-x max

Set the maximum number of days a password remains valid.

-n min

Set the minimum number of days before a password may be changed.

-w warn

Set the number of days warning the user will receive before their password will expire.

-i inactive

Disable an account after the password has been expired for the given number of days.

-l

Disable an account by changing the password to a value which matches no possible encrypted value.

-u

Re-enables an account by changing the password back to its previous value.