1CHAGE(1) User Commands CHAGE(1)
2
3
4
6 chage - change user password expiry information
7
9 chage [options] [LOGIN]
10
12 The chage command changes the number of days between password changes
13 and the date of the last password change. This information is used by
14 the system to determine when a user must change his/her password.
15
17 The options which apply to the chage command are:
18
19 -d, --lastday LAST_DAY
20 Set the number of days since January 1st, 1970 when the password
21 was last changed. The date may also be expressed in the format
22 YYYY-MM-DD (or the format more commonly used in your area).
23
24 -E, --expiredate EXPIRE_DATE
25 Set the date or number of days since January 1, 1970 on which the
26 user´s account will no longer be accessible. The date may also be
27 expressed in the format YYYY-MM-DD (or the format more commonly
28 used in your area). A user whose account is locked must contact the
29 system administrator before being able to use the system again.
30
31 Passing the number -1 as the EXPIRE_DATE will remove an account
32 expiration date.
33
34 -h, --help
35 Display help message and exit.
36
37 -I, --inactive INACTIVE
38 Set the number of days of inactivity after a password has expired
39 before the account is locked. The INACTIVE option is the number of
40 days of inactivity. A user whose account is locked must contact the
41 system administrator before being able to use the system again.
42
43 Passing the number -1 as the INACTIVE will remove an account´s
44 inactivity.
45
46 -l, --list
47 Show account aging information.
48
49 -m, --mindays MIN_DAYS
50 Set the minimum number of days between password changes to
51 MIN_DAYS. A value of zero for this field indicates that the user
52 may change his/her password at any time.
53
54 -M, --maxdays MAX_DAYS
55 Set the maximum number of days during which a password is valid.
56 When MAX_DAYS plus LAST_DAY is less than the current day, the user
57 will be required to change his/her password before being able to
58 use his/her account. This occurrence can be planned for in advance
59 by use of the -W option, which provides the user with advance
60 warning.
61
62 Passing the number -1 as MAX_DAYS will remove checking a password´s
63 validity.
64
65 -W, --warndays WARN_DAYS
66 Set the number of days of warning before a password change is
67 required. The WARN_DAYS option is the number of days prior to the
68 password expiring that a user will be warned his/her password is
69 about to expire.
70
71 If none of the options are selected, chage operates in an interactive
72 fashion, prompting the user with the current values for all of the
73 fields. Enter the new value to change the field, or leave the line
74 blank to use the current value. The current value is displayed between
75 a pair of [ ] marks.
76
78 The chage program requires a shadow password file to be available.
79
80 The chage command is restricted to the root user, except for the -l
81 option, which may be used by an unprivileged user to determine when
82 his/her password or account is due to expire.
83
85 /etc/passwd
86 User account information.
87
88 /etc/shadow
89 Secure user account information.
90
92 The chage command exits with the following values:
93
94 0
95 success
96
97 1
98 permission denied
99
100 2
101 invalid command syntax
102
103 15
104 can´t find the shadow password file
105
107 passwd(5), shadow(5).
108
109
110
111User Commands 07/24/2009 CHAGE(1)