3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
6 .\" Manual: User Commands
7 .\" Source: User Commands
10 .TH "CHAGE" "1" "02/16/2011" "User Commands" "User Commands"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 chage \- change user password expiry information
33 .HP \w'\fBchage\fR\ 'u
34 \fBchage\fR [\fIoptions\fR] [\fILOGIN\fR]
39 command 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 his/her password\&.
42 The options which apply to the
46 \fB\-d\fR, \fB\-\-lastday\fR \fILAST_DAY\fR
48 Set the number of days since January 1st, 1970 when the password was last changed\&. The date may also be expressed in the format YYYY\-MM\-DD (or the format more commonly used in your area)\&.
51 \fB\-E\fR, \fB\-\-expiredate\fR \fIEXPIRE_DATE\fR
53 Set the date or number of days since January 1, 1970 on which the user\*(Aqs account will no longer be accessible\&. The date may also be expressed in the format YYYY\-MM\-DD (or the format more commonly used in your area)\&. A user whose account is locked must contact the system administrator before being able to use the system again\&.
59 will remove an account expiration date\&.
62 \fB\-h\fR, \fB\-\-help\fR
64 Display help message and exit\&.
67 \fB\-I\fR, \fB\-\-inactive\fR \fIINACTIVE\fR
69 Set the number of days of inactivity after a password has expired before the account is locked\&. The
71 option is the number of days of inactivity\&. A user whose account is locked must contact the system administrator before being able to use the system again\&.
77 will remove an account\*(Aqs inactivity\&.
80 \fB\-l\fR, \fB\-\-list\fR
82 Show account aging information\&.
85 \fB\-m\fR, \fB\-\-mindays\fR \fIMIN_DAYS\fR
87 Set the minimum number of days between password changes to
88 \fIMIN_DAYS\fR\&. A value of zero for this field indicates that the user may change his/her password at any time\&.
91 \fB\-M\fR, \fB\-\-maxdays\fR \fIMAX_DAYS\fR
93 Set the maximum number of days during which a password is valid\&. When
97 is less than the current day, the user will be required to change his/her password before being able to use his/her account\&. This occurrence can be planned for in advance by use of the
99 option, which provides the user with advance warning\&.
105 will remove checking a password\*(Aqs validity\&.
108 \fB\-W\fR, \fB\-\-warndays\fR \fIWARN_DAYS\fR
110 Set the number of days of warning before a password change is required\&. The
112 option is the number of days prior to the password expiring that a user will be warned his/her password is about to expire\&.
115 If none of the options are selected,
117 operates in an interactive fashion, prompting the user with the current values for all of the fields\&. Enter the new value to change the field, or leave the line blank to use the current value\&. The current value is displayed between a pair of
124 program requires a shadow password file to be available\&.
128 command is restricted to the root user, except for the
130 option, which may be used by an unprivileged user to determine when his/her password or account is due to expire\&.
135 User account information\&.
140 Secure user account information\&.
146 command exits with the following values:
160 invalid command syntax
165 can\*(Aqt find the shadow password file