320 lines
8.7 KiB
HTML
320 lines
8.7 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of GPASSWD</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>GPASSWD</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>
|
|
|
|
gpasswd - administer /etc/group and /etc/gshadow
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>gpasswd</B> [<I>option</I>] <I>groupe</I>
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
<DD>The
|
|
<B>gpasswd</B>
|
|
command is used to administer
|
|
/etc/group, and /etc/gshadow. Every group can have
|
|
administrators,
|
|
members and a password.
|
|
<P>
|
|
|
|
System administrators can use the
|
|
<B>-A</B>
|
|
option to define group administrator(s) and the
|
|
<B>-M</B>
|
|
option to define members. They have all rights of group administrators and members.
|
|
<P>
|
|
|
|
<B>gpasswd</B>
|
|
called by
|
|
a group administrator
|
|
with a group name only prompts for the new password of the
|
|
<I>group</I>.
|
|
<P>
|
|
|
|
If a password is set the members can still use
|
|
<B><A HREF="/cgi-bin/man/man2html?1+newgrp">newgrp</A></B>(1)
|
|
without a password, and non-members must supply the password.
|
|
<A NAME="lbAE"> </A>
|
|
<H3>Notes sur les mots de passe de groupe</H3>
|
|
|
|
<P>
|
|
|
|
Les mots de passe de groupe représentent naturellement un risque en matière de sécurité, puisque plusieurs personnes ont connaissance du mot de passe. Cependant, les groupes sont utiles pour permettre la coopération entre différents utilisateurs.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
|
|
Except for the
|
|
<B>-A</B>
|
|
and
|
|
<B>-M</B>
|
|
options, the options cannot be combined.
|
|
<P>
|
|
|
|
The options which apply to the
|
|
<B>gpasswd</B>
|
|
command are:
|
|
<P>
|
|
|
|
<B>-a</B>, <B>--add</B> <I>user</I>
|
|
<DL COMPACT><DT id="2"><DD>
|
|
Add the
|
|
<I>user</I>
|
|
to the named
|
|
<I>group</I>.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-d</B>, <B>--delete</B> <I>user</I>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
Remove the
|
|
<I>user</I>
|
|
from the named
|
|
<I>group</I>.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-h</B>, <B>--help</B>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
Afficher un message d'aide et quitter.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-Q</B>, <B>--root</B> <I>CHROOT_DIR</I>
|
|
<DL COMPACT><DT id="5"><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>-r</B>, <B>--remove-password</B>
|
|
<DL COMPACT><DT id="6"><DD>
|
|
Remove the password from the named
|
|
<I>group</I>. The group password will be empty. Only group members will be allowed to use
|
|
<B>newgrp</B>
|
|
to join the named
|
|
<I>group</I>.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-R</B>, <B>--restrict</B>
|
|
<DL COMPACT><DT id="7"><DD>
|
|
Restrict the access to the named
|
|
<I>group</I>. The group password is set to "!". Only group members with a password will be allowed to use
|
|
<B>newgrp</B>
|
|
to join the named
|
|
<I>group</I>.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-A</B>, <B>--administrators</B> <I>user</I>,...
|
|
<DL COMPACT><DT id="8"><DD>
|
|
Configurer la liste des administrateurs.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-M</B>, <B>--members</B> <I>user</I>,...
|
|
<DL COMPACT><DT id="9"><DD>
|
|
Configurer la liste des membres du groupe.
|
|
</DL>
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AVERTISSEMENTS</H2>
|
|
|
|
<P>
|
|
|
|
This tool only operates on the
|
|
/etc/group
|
|
and /etc/gshadow files.
|
|
Thus you cannot change any NIS or LDAP group. This must be performed on the corresponding server.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>CONFIGURATION</H2>
|
|
|
|
<P>
|
|
|
|
The following configuration variables in
|
|
/etc/login.defs
|
|
change the behavior of this tool:
|
|
<P>
|
|
|
|
<B>ENCRYPT_METHOD</B> (string)
|
|
<DL COMPACT><DT id="10"><DD>
|
|
Définir les algorithmes de chiffrement par défaut du système pour coder les mots de passes (si aucun algorithme n'a été indiqué sur la ligne de commandes).
|
|
<P>
|
|
It can take one of these values:
|
|
<I>DES</I>
|
|
(default),
|
|
<I>MD5</I>, <I>SHA256</I>, <I>SHA512</I>.
|
|
<P>
|
|
Note: this parameter overrides the
|
|
<B>MD5_CRYPT_ENAB</B>
|
|
variable.
|
|
<P>
|
|
Remarque : cela n'affecte que la création des mots de passe de groupe. La création de mot de passe des utilisateurs est effectuée par PAM en fonction de la configuration de PAM. Il est recommandé de définir cette variable en cohérence avec la configuration de PAM.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>MAX_MEMBERS_PER_GROUP</B> (number)
|
|
<DL COMPACT><DT id="11"><DD>
|
|
Maximum members per group entry. When the maximum is reached, a new group entry (line) is started in
|
|
/etc/group
|
|
(with the same name, same password, and same GID).
|
|
<P>
|
|
La valeur par défaut est 0, ce qui signifie qu'il n'y a pas de limites pour le nombre de membres dans un groupe.
|
|
<P>
|
|
Cette fonctionnalité (groupe découpé) permet de limiter la longueur des lignes dans le fichier de groupes. Ceci est utile pour s'assurer que les lignes pour les groupes NIS ne sont pas plus grandes que 1024 caractères.
|
|
<P>
|
|
Si vous avez besoin de configurer cette limite, vous pouvez utiliser 25.
|
|
<P>
|
|
Remarque : les groupes découpés ne sont peut-être pas pris en charge par tous les outils (même dans la suite d'outils Shadow). Vous ne devriez pas utiliser cette variable, sauf si vous en avez vraiment besoin.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>MD5_CRYPT_ENAB</B> (boolean)
|
|
<DL COMPACT><DT id="12"><DD>
|
|
Indicate if passwords must be encrypted using the MD5-based algorithm. If set to
|
|
<I>yes</I>, new passwords will be encrypted using the MD5-based algorithm compatible with the one used by recent releases of FreeBSD. It supports passwords of unlimited length and longer salt strings. Set to
|
|
<I>no</I>
|
|
if you need to copy encrypted passwords to other systems which don't understand the new algorithm. Default is
|
|
<I>no</I>.
|
|
<P>
|
|
This variable is superseded by the
|
|
<B>ENCRYPT_METHOD</B>
|
|
variable or by any command line option used to configure the encryption algorithm.
|
|
<P>
|
|
This variable is deprecated. You should use
|
|
<B>ENCRYPT_METHOD</B>.
|
|
<P>
|
|
Remarque : cela n'affecte que la création des mots de passe de groupe. La création de mot de passe des utilisateurs est effectuée par PAM en fonction de la configuration de PAM. Il est recommandé de définir cette variable en cohérence avec la configuration de PAM.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>SHA_CRYPT_MIN_ROUNDS</B> (number), <B>SHA_CRYPT_MAX_ROUNDS</B> (number)
|
|
<DL COMPACT><DT id="13"><DD>
|
|
When
|
|
<B>ENCRYPT_METHOD</B>
|
|
is set to
|
|
<I>SHA256</I>
|
|
or
|
|
<I>SHA512</I>, this defines the number of SHA rounds used by the encryption algorithm by default (when the number of rounds is not specified on the command line).
|
|
<P>
|
|
Avec beaucoup de rounds, il est plus difficile de trouver le mot de passe avec une attaque par force brute. Veuillez remarquer que plus de ressources processeur seront nécessaires pour authentifier les utilisateurs.
|
|
<P>
|
|
Si non précisée, la libc utilisera le nombre de rounds par défaut (5000).
|
|
<P>
|
|
Les valeurs doivent être comprises dans l'intervalle 1 000 - 999 999 999.
|
|
<P>
|
|
If only one of the
|
|
<B>SHA_CRYPT_MIN_ROUNDS</B>
|
|
or
|
|
<B>SHA_CRYPT_MAX_ROUNDS</B>
|
|
values is set, then this value will be used.
|
|
<P>
|
|
If
|
|
<B>SHA_CRYPT_MIN_ROUNDS</B>
|
|
>
|
|
<B>SHA_CRYPT_MAX_ROUNDS</B>, the highest value will be used.
|
|
<P>
|
|
Remarque : cela n'affecte que la création des mots de passe de groupe. La création de mot de passe des utilisateurs est effectuée par PAM en fonction de la configuration de PAM. Il est recommandé de définir cette variable en cohérence avec la configuration de PAM.
|
|
</DL>
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H2>FICHIERS</H2>
|
|
|
|
<P>
|
|
|
|
/etc/group
|
|
<DL COMPACT><DT id="14"><DD>
|
|
Informations sur les groupes.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/gshadow
|
|
<DL COMPACT><DT id="15"><DD>
|
|
Informations sécurisées sur les groupes.
|
|
</DL>
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>VOIR AUSSI</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+newgrp">newgrp</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?8+groupadd">groupadd</A></B>(8),
|
|
<B><A HREF="/cgi-bin/man/man2html?8+groupdel">groupdel</A></B>(8),
|
|
<B><A HREF="/cgi-bin/man/man2html?8+groupmod">groupmod</A></B>(8),
|
|
<B><A HREF="/cgi-bin/man/man2html?8+grpck">grpck</A></B>(8),
|
|
<B><A HREF="/cgi-bin/man/man2html?5+group">group</A></B>(5), <B><A HREF="/cgi-bin/man/man2html?5+gshadow">gshadow</A></B>(5).
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="16"><A HREF="#lbAB">NOM</A><DD>
|
|
<DT id="17"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="18"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DL>
|
|
<DT id="19"><A HREF="#lbAE">Notes sur les mots de passe de groupe</A><DD>
|
|
</DL>
|
|
<DT id="20"><A HREF="#lbAF">OPTIONS</A><DD>
|
|
<DT id="21"><A HREF="#lbAG">AVERTISSEMENTS</A><DD>
|
|
<DT id="22"><A HREF="#lbAH">CONFIGURATION</A><DD>
|
|
<DT id="23"><A HREF="#lbAI">FICHIERS</A><DD>
|
|
<DT id="24"><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:01 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|