271 lines
6.2 KiB
HTML
271 lines
6.2 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of CHAGE</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>CHAGE</H1>
|
|
Section: Commandes utilisateur (1)<BR>Updated: 28/05/2020<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NOM</H2>
|
|
|
|
chage - Modifier les informations de validité d'un mot de passe
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>chage</B> [<I>options</I>] <I>LOGIN</I>
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
<DD>The
|
|
<B>chage</B>
|
|
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 their password.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
|
|
The options which apply to the
|
|
<B>chage</B>
|
|
command are:
|
|
<P>
|
|
|
|
<B>-d</B>, <B>--lastday</B> <I>LAST_DAY</I>
|
|
<DL COMPACT><DT id="2"><DD>
|
|
Configurer le nombre du jour, à compter du 1er janvier 1970, où le mot de passe a été changé la dernière fois. La date peut aussi être exprimée dans le format AAAA-MM-JJ (ou le format utilisé plus communément dans votre région).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-E</B>, <B>--expiredate</B> <I>EXPIRE_DATE</I>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
Configurer la date, ou le nombre de jours à compter du 1er janvier 1970, à partir de laquelle le compte de l'utilisateur ne sera plus accessible. La date peut aussi être exprimée dans le format AAAA-MM-JJ (ou le format plus communément utilisé dans votre région). Un utilisateur dont le compte est bloqué doit contacter l'administrateur système pour pouvoir utiliser à nouveau le système.
|
|
<P>
|
|
Passing the number
|
|
<I>-1</I>
|
|
as the
|
|
<I>EXPIRE_DATE</I>
|
|
will remove an account expiration date.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-h</B>, <B>--help</B>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
Afficher un message d'aide et quitter.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-i</B>, <B>--iso8601</B>
|
|
<DL COMPACT><DT id="5"><DD>
|
|
When printing dates, use YYYY-MM-DD format.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-I</B>, <B>--inactive</B> <I>INACTIVE</I>
|
|
<DL COMPACT><DT id="6"><DD>
|
|
Set the number of days of inactivity after a password has expired before the account is locked. The
|
|
<I>INACTIVE</I>
|
|
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.
|
|
<P>
|
|
Passing the number
|
|
<I>-1</I>
|
|
as the
|
|
<I>INACTIVE</I>
|
|
will remove an account's inactivity.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-l</B>, <B>--list</B>
|
|
<DL COMPACT><DT id="7"><DD>
|
|
Afficher les informations sur l'âge des comptes.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-m</B>, <B>--mindays</B> <I>MIN_DAYS</I>
|
|
<DL COMPACT><DT id="8"><DD>
|
|
Set the minimum number of days between password changes to
|
|
<I>MIN_DAYS</I>. A value of zero for this field indicates that the user may change their password at any time.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-M</B>, <B>--maxdays</B> <I>MAX_DAYS</I>
|
|
<DL COMPACT><DT id="9"><DD>
|
|
Set the maximum number of days during which a password is valid. When
|
|
<I>MAX_DAYS</I>
|
|
plus
|
|
<I>LAST_DAY</I>
|
|
is less than the current day, the user will be required to change their password before being able to use their account. This occurrence can be planned for in advance by use of the
|
|
<B>-W</B>
|
|
option, which provides the user with advance warning.
|
|
<P>
|
|
Passing the number
|
|
<I>-1</I>
|
|
as
|
|
<I>MAX_DAYS</I>
|
|
will remove checking a password's validity.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-R</B>, <B>--root</B> <I>CHROOT_DIR</I>
|
|
<DL COMPACT><DT id="10"><DD>
|
|
Apply changes in the
|
|
<I>CHROOT_DIR</I>
|
|
directory and use the configuration files from the
|
|
<I>CHROOT_DIR</I>
|
|
directory.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-W</B>, <B>--warndays</B> <I>WARN_DAYS</I>
|
|
<DL COMPACT><DT id="11"><DD>
|
|
Set the number of days of warning before a password change is required. The
|
|
<I>WARN_DAYS</I>
|
|
option is the number of days prior to the password expiring that a user will be warned their password is about to expire.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
If none of the options are selected,
|
|
<B>chage</B>
|
|
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
|
|
<I>[ ]</I>
|
|
marks.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>NOTE</H2>
|
|
|
|
<P>
|
|
|
|
The
|
|
<B>chage</B>
|
|
program requires a shadow password file to be available.
|
|
<P>
|
|
|
|
The
|
|
<B>chage</B>
|
|
command is restricted to the root user, except for the
|
|
<B>-l</B>
|
|
option, which may be used by an unprivileged user to determine when their password or account is due to expire.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>CONFIGURATION</H2>
|
|
|
|
<P>
|
|
|
|
The following configuration variables in
|
|
/etc/login.defs
|
|
change the behavior of this tool:
|
|
<A NAME="lbAH"> </A>
|
|
<H2>FICHIERS</H2>
|
|
|
|
<P>
|
|
|
|
/etc/passwd
|
|
<DL COMPACT><DT id="12"><DD>
|
|
Informations sur les comptes des utilisateurs.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/shadow
|
|
<DL COMPACT><DT id="13"><DD>
|
|
Informations sécurisées sur les comptes utilisateurs.
|
|
</DL>
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H2>VALEURS DE RETOUR</H2>
|
|
|
|
<P>
|
|
|
|
The
|
|
<B>chage</B>
|
|
command exits with the following values:
|
|
<P>
|
|
|
|
<I>0</I>
|
|
<DL COMPACT><DT id="14"><DD>
|
|
success
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>1</I>
|
|
<DL COMPACT><DT id="15"><DD>
|
|
permission denied
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>2</I>
|
|
<DL COMPACT><DT id="16"><DD>
|
|
invalid command syntax
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>15</I>
|
|
<DL COMPACT><DT id="17"><DD>
|
|
can't find the shadow password file
|
|
</DL>
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>VOIR AUSSI</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+passwd">passwd</A></B>(5),
|
|
<B><A HREF="/cgi-bin/man/man2html?5+shadow">shadow</A></B>(5).
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="18"><A HREF="#lbAB">NOM</A><DD>
|
|
<DT id="19"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="20"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="21"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="22"><A HREF="#lbAF">NOTE</A><DD>
|
|
<DT id="23"><A HREF="#lbAG">CONFIGURATION</A><DD>
|
|
<DT id="24"><A HREF="#lbAH">FICHIERS</A><DD>
|
|
<DT id="25"><A HREF="#lbAI">VALEURS DE RETOUR</A><DD>
|
|
<DT id="26"><A HREF="#lbAJ">VOIR AUSSI</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:00 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|