384 lines
7.4 KiB
HTML
384 lines
7.4 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of PWCK</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>PWCK</H1>
|
|
Section: Commandes de gestion du systèm (8)<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>
|
|
|
|
pwck - Vérifier l'intégrité des fichiers de mots de passe
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>pwck</B> [options] [<I>passwd</I> [ <I>shadow</I> ]]
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
<DD>The
|
|
<B>pwck</B>
|
|
command verifies the integrity of the users and authentication information. It checks that all entries in
|
|
/etc/passwd
|
|
and
|
|
/etc/shadow
|
|
have the proper format and contain valid data. The user is prompted to delete entries that are improperly formatted or which have other uncorrectable errors.
|
|
<P>
|
|
|
|
Voici les vérifications effectuées :
|
|
<P>
|
|
<DL COMPACT><DT id="2"><DD>
|
|
•
|
|
|
|
|
|
nombre correct de champs ;
|
|
</DL>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
•
|
|
|
|
|
|
unicité et validité des noms d'utilisateur ;
|
|
</DL>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
•
|
|
|
|
|
|
validité des identifiants d'utilisateur et de groupe ;
|
|
</DL>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="5"><DD>
|
|
•
|
|
|
|
|
|
validité du groupe primaire ;
|
|
</DL>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="6"><DD>
|
|
•
|
|
|
|
|
|
validité du répertoire personnel ;
|
|
</DL>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="7"><DD>
|
|
•
|
|
|
|
|
|
validité de l'interpréteur de commandes initial (« login shell »).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
shadow
|
|
checks are enabled when a second file parameter is specified or when
|
|
/etc/shadow
|
|
exists on the system.
|
|
<P>
|
|
|
|
Ces vérifications sont les suivantes :
|
|
<P>
|
|
<DL COMPACT><DT id="8"><DD>
|
|
•
|
|
|
|
|
|
chaque entrée de passwd a une entrée correspondante dans shadow, et chaque entrée shadow a une entrée passwd correspondante ;
|
|
</DL>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="9"><DD>
|
|
•
|
|
|
|
|
|
les mots de passe sont indiqués dans le fichier des mot de passe cachés ;
|
|
</DL>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="10"><DD>
|
|
•
|
|
|
|
|
|
les entrées de shadow ont le bon nombre de champs ;
|
|
</DL>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="11"><DD>
|
|
•
|
|
|
|
|
|
les entrées de shadow sont uniques dans shadow ;
|
|
</DL>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="12"><DD>
|
|
•
|
|
|
|
|
|
la date du dernier changement de mot de passe n'est pas dans le futur.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
The checks for correct number of fields and unique user name are fatal. If the entry has the wrong number of fields, the user will be prompted to delete the entire line. If the user does not answer affirmatively, all further checks are bypassed. An entry with a duplicated user name is prompted for deletion, but the remaining checks will still be made. All other errors are warning and the user is encouraged to run the
|
|
<B>usermod</B>
|
|
command to correct the error.
|
|
<P>
|
|
|
|
The commands which operate on the
|
|
/etc/passwd
|
|
file are not able to alter corrupted or duplicated entries.
|
|
<B>pwck</B>
|
|
should be used in those circumstances to remove the offending entry.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
|
|
The
|
|
<B>-r</B>
|
|
and
|
|
<B>-s</B>
|
|
options cannot be combined.
|
|
<P>
|
|
|
|
The options which apply to the
|
|
<B>pwck</B>
|
|
command are:
|
|
<P>
|
|
|
|
<B>--badname</B>
|
|
<DL COMPACT><DT id="13"><DD>
|
|
Allow names that do not conform to standards.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-h</B>, <B>--help</B>
|
|
<DL COMPACT><DT id="14"><DD>
|
|
Afficher un message d'aide et quitter.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-q</B>, <B>--quiet</B>
|
|
<DL COMPACT><DT id="15"><DD>
|
|
Ne signaler que les erreurs. Les avertissements qui ne nécessitent pas une action de la part de l'utilisateur ne seront pas affichés.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-r</B>, <B>--read-only</B>
|
|
<DL COMPACT><DT id="16"><DD>
|
|
Execute the
|
|
<B>pwck</B>
|
|
command in read-only mode.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-R</B>, <B>--root</B> <I>CHROOT_DIR</I>
|
|
<DL COMPACT><DT id="17"><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>-s</B>, <B>--sort</B>
|
|
<DL COMPACT><DT id="18"><DD>
|
|
Sort entries in
|
|
/etc/passwd
|
|
and
|
|
/etc/shadow
|
|
by UID.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
By default,
|
|
<B>pwck</B>
|
|
operates on the files
|
|
/etc/passwd
|
|
and
|
|
/etc/shadow. The user may select alternate files with the
|
|
<I>passwd</I>
|
|
and
|
|
<I>shadow</I>
|
|
parameters.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>CONFIGURATION</H2>
|
|
|
|
<P>
|
|
|
|
The following configuration variables in
|
|
/etc/login.defs
|
|
change the behavior of this tool:
|
|
<P>
|
|
|
|
<B>PASS_MAX_DAYS</B> (number)
|
|
<DL COMPACT><DT id="19"><DD>
|
|
Nombre maximum de jours de validité d'un mot de passe. Après cette durée, une modification du mot de passe est obligatoire. S'il n'est pas précisé, la valeur de -1 est utilisée (ce qui enlève toute restriction).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>PASS_MIN_DAYS</B> (number)
|
|
<DL COMPACT><DT id="20"><DD>
|
|
Nombre minimum de jours autorisé avant la modification d'un mot de passe. Toute tentative de modification du mot de passe avant cette durée est rejetée. S'il n'est pas précisé, la valeur de -1 est utilisée (ce qui enlève toute restriction).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>PASS_WARN_AGE</B> (number)
|
|
<DL COMPACT><DT id="21"><DD>
|
|
Nombre de jours durant lesquels l'utilisateur recevra un avertissement avant que son mot de passe n'arrive en fin de validité. Une valeur négative signifie qu'aucun avertissement n'est donné. S'il n'est pas précisé, aucun avertissement n'est donné.
|
|
</DL>
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>FICHIERS</H2>
|
|
|
|
<P>
|
|
|
|
/etc/group
|
|
<DL COMPACT><DT id="22"><DD>
|
|
Informations sur les groupes.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/passwd
|
|
<DL COMPACT><DT id="23"><DD>
|
|
Informations sur les comptes des utilisateurs.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/shadow
|
|
<DL COMPACT><DT id="24"><DD>
|
|
Informations sécurisées sur les comptes utilisateurs.
|
|
</DL>
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>VALEURS DE RETOUR</H2>
|
|
|
|
<P>
|
|
|
|
The
|
|
<B>pwck</B>
|
|
command exits with the following values:
|
|
<P>
|
|
|
|
<I>0</I>
|
|
<DL COMPACT><DT id="25"><DD>
|
|
success
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>1</I>
|
|
<DL COMPACT><DT id="26"><DD>
|
|
invalid command syntax
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>2</I>
|
|
<DL COMPACT><DT id="27"><DD>
|
|
one or more bad password entries
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>3</I>
|
|
<DL COMPACT><DT id="28"><DD>
|
|
can't open password files
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>4</I>
|
|
<DL COMPACT><DT id="29"><DD>
|
|
can't lock password files
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>5</I>
|
|
<DL COMPACT><DT id="30"><DD>
|
|
can't update password files
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>6</I>
|
|
<DL COMPACT><DT id="31"><DD>
|
|
can't sort password files
|
|
</DL>
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H2>VOIR AUSSI</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+group">group</A></B>(5),
|
|
<B><A HREF="/cgi-bin/man/man2html?8+grpck">grpck</A></B>(8),
|
|
<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),
|
|
<B><A HREF="/cgi-bin/man/man2html?8+usermod">usermod</A></B>(8).
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="32"><A HREF="#lbAB">NOM</A><DD>
|
|
<DT id="33"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="34"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="35"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="36"><A HREF="#lbAF">CONFIGURATION</A><DD>
|
|
<DT id="37"><A HREF="#lbAG">FICHIERS</A><DD>
|
|
<DT id="38"><A HREF="#lbAH">VALEURS DE RETOUR</A><DD>
|
|
<DT id="39"><A HREF="#lbAI">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:03 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|