NAME
passwd - change user password
SYNOPSIS
passwd [options] [LOGIN]
OPTIONS
The options which apply to the passwd command are:
-e, --expire
Immediately expire an account's password. This in effect can force
a user to change their password at the user's next login.
-i, --inactive INACTIVE
This option is used to disable an account after the password has
been expired for a number of days. After a user account has had an
expired password for INACTIVE days, the user may no longer sign on
to the account.
-w, --warndays WARN_DAYS
Set the number of days of warning before a password change is
required. The WARN_DAYS option is the number of days prior to the
password expiring that a user will be warned that their password is
about to expire.
-x, --maxdays MAX_DAYS
Set the maximum number of days a password remains valid. After
MAX_DAYS, the password is required to be changed.
Passing the number -1 as MAX_DAYS will remove checking a password's
validity.
Polecenie powinieneś z tego już sam skleić.