2007-10-07 17:15:40 +05:30
|
|
|
.\"$Id: chage.1,v 1.13 2004/08/04 13:02:23 kloczek Exp $
|
2007-10-07 17:14:44 +05:30
|
|
|
.\" Copyright 1990 - 1994 Julianne Frances Haugh
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.TH CHAGE 1
|
|
|
|
.SH NAME
|
|
|
|
chage \- change user password expiry information
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.TP 6
|
|
|
|
\fBchage\fR
|
|
|
|
[\fB-m \fImindays\fR] [\fB-M \fImaxdays\fR]
|
|
|
|
[\fB-d \fIlastday\fR] [\fB-I \fIinactive\fR]
|
|
|
|
.br
|
|
|
|
[\fB-E \fIexpiredate\fR] [\fB-W \fIwarndays\fR] \fIuser\fR
|
|
|
|
.TP 6
|
|
|
|
\fBchage\fR
|
2007-10-07 17:15:14 +05:30
|
|
|
\fB-l \fIuser\fR
|
2007-10-07 17:14:44 +05:30
|
|
|
.SH DESCRIPTION
|
2007-10-07 17:15:23 +05:30
|
|
|
\fBchage\fR 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 her password.
|
|
|
|
.PP
|
2007-10-07 17:14:44 +05:30
|
|
|
The \fBchage\fR command is restricted to the root user, except for the
|
|
|
|
\fB-l\fR option, which may be used by an unprivileged user to determine
|
|
|
|
when her password or account is due to expire.
|
2007-10-07 17:15:23 +05:30
|
|
|
The options which apply to the \fBchage\fR command are:
|
|
|
|
.IP "\fB-d\fR \fIlastday\fR"
|
|
|
|
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).
|
|
|
|
.IP "\fB-E\fR \fIexpiredate\fR"
|
|
|
|
Set the date on which the user's account will no longer be accessible. The
|
|
|
|
\fIexpiredate\fR option is the number of days since January 1, 1970 on which
|
|
|
|
the accounted is locked. 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.
|
|
|
|
.IP "\fB-I\fR \fIinactive\fR"
|
|
|
|
Set the number of days of inactivity after a password has expired before the
|
|
|
|
account is locked. The \fIinactive\fR option is the number of days of
|
|
|
|
inactivity. A value of 0 disables this feature. A user whose account is
|
|
|
|
locked must contact the system administrator before being able to use the
|
|
|
|
system again.
|
2007-10-07 17:15:40 +05:30
|
|
|
.IP "\fB-m\fR \fImindays\fR"
|
|
|
|
Set the minimum number of days between password changes. A value of zero for
|
|
|
|
this field indicates that the user may change her password at any time.
|
|
|
|
.IP "\fB-M\fR \fImaxdays\fR"
|
|
|
|
Set maximum number of days during which a password is valid. When
|
|
|
|
\fImaxdays\fR plus fIlastday\fR is less than the current day, the user will
|
|
|
|
be required to change her password before being able to use her account.
|
|
|
|
This occurance can be planned for in advance by use of the \fB-W\fR option,
|
|
|
|
which provides the user with advance warning.
|
2007-10-07 17:15:23 +05:30
|
|
|
.IP "\fB-W\fR \fIwarndays\fR"
|
|
|
|
Set the number of days of warning before a password change is required. The
|
|
|
|
\fIwarndays\fR option is the number of days prior to the password expiring
|
|
|
|
that a user will be warned her password is about to expire.
|
2007-10-07 17:14:44 +05:30
|
|
|
.PP
|
|
|
|
If none of the options are selected, \fBchage\fR operates in an interactive
|
|
|
|
fashion, prompting the user with the current values for all of the fields.
|
2007-10-07 17:15:23 +05:30
|
|
|
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 \fB[ ]\fR
|
|
|
|
marks.
|
2007-10-07 17:15:14 +05:30
|
|
|
.SH NOTE
|
|
|
|
The \fBchage\fR program requires shadow password file to be available.
|
|
|
|
Its functionality is not available when passwords are stored in the
|
|
|
|
passwd file.
|
2007-10-07 17:14:44 +05:30
|
|
|
.SH FILES
|
2007-10-07 17:15:23 +05:30
|
|
|
\fI/etc/passwd\fR \ - user account information
|
2007-10-07 17:14:44 +05:30
|
|
|
.br
|
2007-10-07 17:15:23 +05:30
|
|
|
\fI/etc/shadow\fR \ - shadow user account information
|
2007-10-07 17:14:44 +05:30
|
|
|
.SH SEE ALSO
|
|
|
|
.BR passwd (5),
|
|
|
|
.BR shadow (5)
|
|
|
|
.SH AUTHOR
|
2007-10-07 17:15:14 +05:30
|
|
|
Julianne Frances Haugh <jockgrrl@ix.netcom.com>
|