chage changes the number of days between password changes and the date of the last password change. This information is used by the system to determine when a user must change her password. The chage command is restricted to the root user, except for the -l option, which may be used by an unprivileged user to determine when her password or account is due to expire.
- To see list of account policy of user:
$ change -l
username
- To change maximum number of days, to which a password is valid:
$ change -M value
username
- To change minimum number of days between password changes:
$ change -m value
username
- To set the number of days of warning before a password change is required:
$ change -W value
username
- To set the number of days of inactivity after a password has expired before the account is locked:
$ change -I value
username
- To set a date on which the user's account will no longer be accessible:
$ change -E
mm/dd/yyyy username
- To change, when last password changed.
$ change -d
mm/dd/yyyy username
Configuration file example:
By Linux-Care
0 comments:
Post a Comment