"chage" is the command to list & change the password aging information for linux account. The chage command changes the number of days between password changes and the date of the last password change. Here's a real quick on how to show the expiration date of a particular linux user account.
Listing password aging for uxuser1
[root@cloud99 ~]# chage -l uxuser1
Minimum: 0
Maximum: 99999
Warning: 7
Inactive: -1
Last Change: Oct 05, 2008
Password Expires: Never
Password Inactive: Never
Account Expires: Never
Command usage :
[root@cloud99 ~]# chage
Usage: chage [options] user
Options:
-d, --lastday LAST_DAY set last password change to LAST_DAY
-E, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE
-h, --help display this help message and exit
-I, --inactive INACTIVE set password inactive after expiration
to INACTIVE
-l, --list show account aging information
-m, --mindays MIN_DAYS set minimum number of days before password
change to MIN_DAYS
-M, --maxdays MAX_DAYS set maximim number of days before password
change to MAX_DAYS
-W, --warndays WARN_DAYS set expiration warning days to WARN_DAYS
[root@cloud99 ~]#

No comments:
Post a Comment