Wednesday, March 11, 2009

Change user password expiry in linux

chage - change user password expiry information

SYNOPSIS
chage [-D binddn] [-P path] [-m mindays]
[-M maxdays] [-d lastday] [-I inactive] [-E expiredate] [-W warndays] user

chage -l [user]

DESCRIPTION
chage is used to list and change the password expiry information of a user. It allows the system administrator to change the number of days
between allowed and required password changes and the date of the last password change. It allows also to define when an account will expire. The
chage command is restricted to the system administrator, except for the -l option, which may be used by an user to determine when his password or
account is due to expire.

If no option is given, chage operates in an interactive mode, prompting the user with the current values for all of the fields. Enter the new
value to change the field, or leave the line blank to use the current value. If the users exists in the local passwd file, but not in the local
shadow file, chage will create a new entry in the shadow file.

No comments: