version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
CHAGE |
|
|
2 |
!!!CHAGE |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
FILES |
|
|
7 |
SEE ALSO |
|
|
8 |
AUTHOR |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
chage - change user password expiry information |
|
|
14 |
!!SYNOPSIS |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
__chage__ |
|
|
18 |
|
|
|
19 |
|
|
|
20 |
[[__-m__ ''mindays''] [[__-M__ ''maxdays''] |
|
|
21 |
[[__-d__ ''lastday''] [[__-I__ ''inactive''] |
|
|
22 |
[[__-E__ ''expiredate''] [[__-W__ ''warndays''] |
|
|
23 |
''user'' |
|
|
24 |
|
|
|
25 |
|
|
|
26 |
__chage__ |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
__-l__ ''user'' |
|
|
30 |
!!DESCRIPTION |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
__chage__ changes the number of days between password |
|
|
34 |
changes and the date of the last password change. This |
|
|
35 |
information is used by the system to determine when a user |
|
|
36 |
must change her password. The __chage__ command is |
|
|
37 |
restricted to the root user, except for the __-l__ |
|
|
38 |
option, which may be used by an unprivileged user to |
|
|
39 |
determine when her password or account is due to |
|
|
40 |
expire. |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
With the __-m__ option, the value of ''mindays'' is |
|
|
44 |
the minimum number of days between password changes. A value |
|
|
45 |
of zero for this field indicates that the user may change |
|
|
46 |
her password at any time. |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
With the __-M__ option, the value of ''maxdays'' is |
|
|
50 |
the maximum number of days during which a password is valid. |
|
|
51 |
When ''maxdays'' plus ''lastday'' is less than the |
|
|
52 |
current day, the user will be required to change her |
|
|
53 |
password before being able to use her account. This |
|
|
54 |
occurance can be planned for in advance by use of the |
|
|
55 |
__-W__ option, which provides the user with advance |
|
|
56 |
warning. |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
With the __-d__ option, the value of ''lastday'' is |
|
|
60 |
the number of days since January 1st, 1970 when the password |
|
|
61 |
was last changed. The date may also be expressed in the |
|
|
62 |
format YYYY-MM-DD (or the format more commonly used in your |
|
|
63 |
area). |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
The __-E__ option is used to set a date on which the |
|
|
67 |
user's account will no longer be accessible. The |
|
|
68 |
''expiredate'' option is the number of days since January |
|
|
69 |
1, 1970 on which the accounted is locked. The date may also |
|
|
70 |
be expressed in the format YYYY-MM-DD (or the format more |
|
|
71 |
commonly used in your area). A user whose account is locked |
|
|
72 |
must contact the system administrator before being able to |
|
|
73 |
use the system again. |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
The __-I__ option is used to set the number of days of |
|
|
77 |
inactivity after a password has expired before the account |
|
|
78 |
is locked. A user whose account is locked must contact the |
|
|
79 |
system administrator before being able to use the system |
|
|
80 |
again. The ''inactive'' option is the number of days of |
|
|
81 |
inactivity. A value of 0 disables this feature. |
|
|
82 |
|
|
|
83 |
|
|
|
84 |
The __-W__ option is used to set the number of days of |
|
|
85 |
warning before a password change is required. The |
|
|
86 |
''warndays'' option is the number of days prior to the |
|
|
87 |
password expiring that a user will be warned her password is |
|
|
88 |
about to expire. |
|
|
89 |
|
|
|
90 |
|
|
|
91 |
If none of the options are selected, __chage__ operates |
|
|
92 |
in an interactive fashion, prompting the user with the |
|
|
93 |
current values for all of the fields. Enter the new value to |
|
|
94 |
change the field, or leave the line blank to use the current |
|
|
95 |
value. The current value is displayed between a pair of __[[ |
|
|
96 |
]__ marks. |
|
|
97 |
|
|
|
98 |
|
|
|
99 |
Note that this functionality is not available if shadow |
|
|
100 |
passwords are not enabled. |
|
|
101 |
!!FILES |
|
|
102 |
|
|
|
103 |
|
|
|
104 |
/etc/passwd - user account information |
|
|
105 |
/etc/shadow - shadow user account information |
|
|
106 |
!!SEE ALSO |
|
|
107 |
|
|
|
108 |
|
|
|
109 |
passwd(5), shadow(5) |
|
|
110 |
!!AUTHOR |
|
|
111 |
|
|
|
112 |
|
|
|
113 |
Julianne Frances Haugh (jfh@austin.ibm.com) |
|
|
114 |
---- |