“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

  -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 ~]#

Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like
Read More

Xen tutorial

Xen lets you create guest operating systems (*nix operating systems like Linux and FreeBSD), so called “virtual machines”…
Read More

Some Netapp terms..

Snapshot – is a technology that helps to create point-in-time copies of file systems, which you can use…