979 lines
24 KiB
HTML
979 lines
24 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of USERADD</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>USERADD</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>
|
|
|
|
useradd - créer un nouvel utilisateur ou modifier les informations par défaut appliquées aux nouveaux utilisateurs
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>useradd</B> [<I>options</I>] <I>LOGIN</I>
|
|
<DT id="2">
|
|
<B>useradd</B> -D
|
|
<DT id="3">
|
|
<B>useradd</B> -D [<I>options</I>]
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
<B>useradd</B>
|
|
<DD>is a low level utility for adding users. On Debian, administrators should usually use
|
|
<B><A HREF="/cgi-bin/man/man2html?8+adduser">adduser</A></B>(8)
|
|
instead.
|
|
<P>
|
|
|
|
When invoked without the
|
|
<B>-D</B>
|
|
option, the
|
|
<B>useradd</B>
|
|
command creates a new user account using the values specified on the command line plus the default values from the system. Depending on command line options, the
|
|
<B>useradd</B>
|
|
command will update system files and may also create the new user's home directory and copy initial files.
|
|
<P>
|
|
|
|
By default, a group will also be created for the new user (see
|
|
<B>-g</B>,
|
|
<B>-N</B>,
|
|
<B>-U</B>, and
|
|
<B>USERGROUPS_ENAB</B>).
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
|
|
The options which apply to the
|
|
<B>useradd</B>
|
|
command are:
|
|
<P>
|
|
|
|
<B>--badname</B>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
Allow names that do not conform to standards.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-b</B>, <B>--base-dir</B> <I>BASE_DIR</I>
|
|
<DL COMPACT><DT id="5"><DD>
|
|
The default base directory for the system if
|
|
<B>-d</B> <I>HOME_DIR</I>
|
|
is not specified.
|
|
<I>BASE_DIR</I>
|
|
is concatenated with the account name to define the home directory. If the
|
|
<B>-m</B>
|
|
option is not used,
|
|
<I>BASE_DIR</I>
|
|
must exist.
|
|
<P>
|
|
If this option is not specified,
|
|
<B>useradd</B>
|
|
will use the base directory specified by the
|
|
<B>HOME</B>
|
|
variable in
|
|
/etc/default/useradd, or
|
|
/home
|
|
by default.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-c</B>, <B>--comment</B> <I>COMMENT</I>
|
|
<DL COMPACT><DT id="6"><DD>
|
|
Toute chaîne de texte. C'est généralement une description courte du compte, elle est actuellement utilisée comme champ pour le nom complet de l'utilisateur.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-d</B>, <B>--home-dir</B> <I>HOME_DIR</I>
|
|
<DL COMPACT><DT id="7"><DD>
|
|
The new user will be created using
|
|
<I>HOME_DIR</I>
|
|
as the value for the user's login directory. The default is to append the
|
|
<I>LOGIN</I>
|
|
name to
|
|
<I>BASE_DIR</I>
|
|
and use that as the login directory name. The directory
|
|
<I>HOME_DIR</I>
|
|
does not have to exist but will not be created if it is missing.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-D</B>, <B>--defaults</B>
|
|
<DL COMPACT><DT id="8"><DD>
|
|
Consultez ci-dessous la sous-section « Modifier les valeurs par défaut ».
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-e</B>, <B>--expiredate</B> <I>EXPIRE_DATE</I>
|
|
<DL COMPACT><DT id="9"><DD>
|
|
The date on which the user account will be disabled. The date is specified in the format
|
|
<I>YYYY-MM-DD</I>.
|
|
<P>
|
|
If not specified,
|
|
<B>useradd</B>
|
|
will use the default expiry date specified by the
|
|
<B>EXPIRE</B>
|
|
variable in
|
|
/etc/default/useradd, or an empty string (no expiry) by default.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-f</B>, <B>--inactive</B> <I>INACTIVE</I>
|
|
<DL COMPACT><DT id="10"><DD>
|
|
Nombre de jours suivant la fin de validité d'un mot de passe après lequel le compte est définitivement désactivé. Une valeur de 0 désactive le compte dès que le mot de passe a dépassé sa fin de validité, et une valeur de -1 désactive cette fonctionnalité.
|
|
<P>
|
|
If not specified,
|
|
<B>useradd</B>
|
|
will use the default inactivity period specified by the
|
|
<B>INACTIVE</B>
|
|
variable in
|
|
/etc/default/useradd, or -1 by default.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-g</B>, <B>--gid</B> <I>GROUP</I>
|
|
<DL COMPACT><DT id="11"><DD>
|
|
Nom du groupe ou identifiant numérique du groupe de connexion initial de l'utilisateur. Le nom du groupe doit exister. Un numéro de groupe doit se référer à un groupe déjà existant.
|
|
<P>
|
|
If not specified, the behavior of
|
|
<B>useradd</B>
|
|
will depend on the
|
|
<B>USERGROUPS_ENAB</B>
|
|
variable in
|
|
/etc/login.defs. If this variable is set to
|
|
<I>yes</I>
|
|
(or
|
|
<B>-U/--user-group</B>
|
|
is specified on the command line), a group will be created for the user, with the same name as her loginname. If the variable is set to
|
|
<I>no</I>
|
|
(or
|
|
<B>-N/--no-user-group</B>
|
|
is specified on the command line), useradd will set the primary group of the new user to the value specified by the
|
|
<B>GROUP</B>
|
|
variable in
|
|
/etc/default/useradd, or 100 by default.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-G</B>, <B>--groups</B> <I>GROUP1</I>[<I>,GROUP2,...</I>[<I>,GROUPN</I>]]]
|
|
<DL COMPACT><DT id="12"><DD>
|
|
A list of supplementary groups which the user is also a member of. Each group is separated from the next by a comma, with no intervening whitespace. The groups are subject to the same restrictions as the group given with the
|
|
<B>-g</B>
|
|
option. The default is for the user to belong only to the initial group.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-h</B>, <B>--help</B>
|
|
<DL COMPACT><DT id="13"><DD>
|
|
Afficher un message d'aide et quitter.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-k</B>, <B>--skel</B> <I>SKEL_DIR</I>
|
|
<DL COMPACT><DT id="14"><DD>
|
|
The skeleton directory, which contains files and directories to be copied in the user's home directory, when the home directory is created by
|
|
<B>useradd</B>.
|
|
<P>
|
|
This option is only valid if the
|
|
<B>-m</B>
|
|
(or
|
|
<B>--create-home</B>) option is specified.
|
|
<P>
|
|
If this option is not set, the skeleton directory is defined by the
|
|
<B>SKEL</B>
|
|
variable in
|
|
/etc/default/useradd
|
|
or, by default,
|
|
/etc/skel.
|
|
<P>
|
|
Si possible, les ACL et les attributs étendus seront copiés.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-K</B>, <B>--key</B> <I>KEY</I>=<I>VALUE</I>
|
|
<DL COMPACT><DT id="15"><DD>
|
|
Overrides
|
|
/etc/login.defs
|
|
defaults (<B>UID_MIN</B>,
|
|
<B>UID_MAX</B>,
|
|
<B>UMASK</B>,
|
|
<B>PASS_MAX_DAYS</B>
|
|
and others).
|
|
<P>
|
|
Example:
|
|
<B>-K</B> <I>PASS_MAX_DAYS</I>=<I>-1</I>
|
|
can be used when creating system account to turn off password aging, even though system account has no password at all. Multiple
|
|
<B>-K</B>
|
|
options can be specified, e.g.:
|
|
<B>-K</B> <I>UID_MIN</I>=<I>100</I>
|
|
<B>-K</B> <I>UID_MAX</I>=<I>499</I>
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-l</B>, <B>--no-log-init</B>
|
|
<DL COMPACT><DT id="16"><DD>
|
|
N'ajoute pas l'utilisateur aux bases de données lastlog et faillog.
|
|
<P>
|
|
Par défaut, les entrées de l'utilisateur dans les bases de données lastlog et faillog sont remises à zéro pour éviter de réutiliser les entrées d'un utilisateur précédemment supprimé.
|
|
<P>
|
|
For the compatibility with previous Debian's
|
|
<B>useradd</B>, the
|
|
<B>-O</B>
|
|
option is also supported.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-m</B>, <B>--create-home</B>
|
|
<DL COMPACT><DT id="17"><DD>
|
|
Create the user's home directory if it does not exist. The files and directories contained in the skeleton directory (which can be defined with the
|
|
<B>-k</B>
|
|
option) will be copied to the home directory.
|
|
<P>
|
|
By default, if this option is not specified and
|
|
<B>CREATE_HOME</B>
|
|
is not enabled, no home directories are created.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-M</B>, <B>--no-create-home</B>
|
|
<DL COMPACT><DT id="18"><DD>
|
|
Do no create the user's home directory, even if the system wide setting from
|
|
/etc/login.defs
|
|
(<B>CREATE_HOME</B>) is set to
|
|
<I>yes</I>.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-N</B>, <B>--no-user-group</B>
|
|
<DL COMPACT><DT id="19"><DD>
|
|
Do not create a group with the same name as the user, but add the user to the group specified by the
|
|
<B>-g</B>
|
|
option or by the
|
|
<B>GROUP</B>
|
|
variable in
|
|
/etc/default/useradd.
|
|
<P>
|
|
The default behavior (if the
|
|
<B>-g</B>,
|
|
<B>-N</B>, and
|
|
<B>-U</B>
|
|
options are not specified) is defined by the
|
|
<B>USERGROUPS_ENAB</B>
|
|
variable in
|
|
/etc/login.defs.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-o</B>, <B>--non-unique</B>
|
|
<DL COMPACT><DT id="20"><DD>
|
|
Permet de créer un compte d'utilisateur avec un identifiant (« UID ») dupliqué (non unique).
|
|
<P>
|
|
This option is only valid in combination with the
|
|
<B>-u</B>
|
|
option.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-p</B>, <B>--password</B> <I>PASSWORD</I>
|
|
<DL COMPACT><DT id="21"><DD>
|
|
The encrypted password, as returned by
|
|
<B><A HREF="/cgi-bin/man/man2html?3+crypt">crypt</A></B>(3). The default is to disable the password.
|
|
<P>
|
|
<B>Note:</B>
|
|
This option is not recommended because the password (or encrypted password) will be visible by users listing the processes.
|
|
<P>
|
|
Il est nécessaire de vérifier si le mot de passe respecte la politique de mots de passe du système.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-r</B>, <B>--system</B>
|
|
<DL COMPACT><DT id="22"><DD>
|
|
Créer un compte système.
|
|
<P>
|
|
System users will be created with no aging information in
|
|
/etc/shadow, and their numeric identifiers are chosen in the
|
|
<B>SYS_UID_MIN</B>-<B>SYS_UID_MAX</B>
|
|
range, defined in
|
|
/etc/login.defs, instead of
|
|
<B>UID_MIN</B>-<B>UID_MAX</B>
|
|
(and their
|
|
<B>GID</B>
|
|
counterparts for the creation of groups).
|
|
<P>
|
|
Note that
|
|
<B>useradd</B>
|
|
will not create a home directory for such a user, regardless of the default setting in
|
|
/etc/login.defs
|
|
(<B>CREATE_HOME</B>). You have to specify the
|
|
<B>-m</B>
|
|
options if you want a home directory for a system account to be created.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-R</B>, <B>--root</B> <I>CHROOT_DIR</I>
|
|
<DL COMPACT><DT id="23"><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>-P</B>, <B>--prefix</B> <I>PREFIX_DIR</I>
|
|
<DL COMPACT><DT id="24"><DD>
|
|
Apply changes in the
|
|
<I>PREFIX_DIR</I>
|
|
directory and use the configuration files from the
|
|
<I>PREFIX_DIR</I>
|
|
directory. This option does not chroot and is intended for preparing a cross-compilation target. Some limitations: NIS and LDAP users/groups are not verified. PAM authentication is using the host files. No SELINUX support.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-s</B>, <B>--shell</B> <I>SHELL</I>
|
|
<DL COMPACT><DT id="25"><DD>
|
|
The name of the user's login shell. The default is to leave this field blank, which causes the system to select the default login shell specified by the
|
|
<B>SHELL</B>
|
|
variable in
|
|
/etc/default/useradd, or an empty string by default.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-u</B>, <B>--uid</B> <I>UID</I>
|
|
<DL COMPACT><DT id="26"><DD>
|
|
The numerical value of the user's ID. This value must be unique, unless the
|
|
<B>-o</B>
|
|
option is used. The value must be non-negative. The default is to use the smallest ID value greater than or equal to
|
|
<B>UID_MIN</B>
|
|
and greater than every other user.
|
|
<P>
|
|
See also the
|
|
<B>-r</B>
|
|
option and the
|
|
<B>UID_MAX</B>
|
|
description.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-U</B>, <B>--user-group</B>
|
|
<DL COMPACT><DT id="27"><DD>
|
|
Crée un groupe avec le même nom que celui de l'utilisateur, et ajoute l'utilisateur à ce groupe.
|
|
<P>
|
|
The default behavior (if the
|
|
<B>-g</B>,
|
|
<B>-N</B>, and
|
|
<B>-U</B>
|
|
options are not specified) is defined by the
|
|
<B>USERGROUPS_ENAB</B>
|
|
variable in
|
|
/etc/login.defs.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-Z</B>, <B>--selinux-user</B> <I>SEUSER</I>
|
|
<DL COMPACT><DT id="28"><DD>
|
|
L'utilisateur SELinux utilisé pour la connexion de l'utilisateur. Le comportement par défaut est de laisser ce champ vide. Le système sélectionnera alors l'utilisateur SELinux par défaut.
|
|
</DL>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H3>Modifier les valeurs par défaut</H3>
|
|
|
|
<P>
|
|
|
|
When invoked with only the
|
|
<B>-D</B>
|
|
option,
|
|
<B>useradd</B>
|
|
will display the current default values. When invoked with
|
|
<B>-D</B>
|
|
plus other options,
|
|
<B>useradd</B>
|
|
will update the default values for the specified options. Valid default-changing options are:
|
|
<P>
|
|
|
|
<B>-b</B>, <B>--base-dir</B> <I>BASE_DIR</I>
|
|
<DL COMPACT><DT id="29"><DD>
|
|
The path prefix for a new user's home directory. The user's name will be affixed to the end of
|
|
<I>BASE_DIR</I>
|
|
to form the new user's home directory name, if the
|
|
<B>-d</B>
|
|
option is not used when creating a new account.
|
|
<P>
|
|
This option sets the
|
|
<B>HOME</B>
|
|
variable in
|
|
/etc/default/useradd.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-e</B>, <B>--expiredate</B> <I>EXPIRE_DATE</I>
|
|
<DL COMPACT><DT id="30"><DD>
|
|
Date à laquelle le compte utilisateur sera désactivé.
|
|
<P>
|
|
This option sets the
|
|
<B>EXPIRE</B>
|
|
variable in
|
|
/etc/default/useradd.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-f</B>, <B>--inactive</B> <I>INACTIVE</I>
|
|
<DL COMPACT><DT id="31"><DD>
|
|
Nombre de jours après la fin de validité d'un mot de passe avant que le compte ne soit désactivé.
|
|
<P>
|
|
This option sets the
|
|
<B>INACTIVE</B>
|
|
variable in
|
|
/etc/default/useradd.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-g</B>, <B>--gid</B> <I>GROUP</I>
|
|
<DL COMPACT><DT id="32"><DD>
|
|
The group name or ID for a new user's initial group (when the
|
|
<B>-N/--no-user-group</B>
|
|
is used or when the
|
|
<B>USERGROUPS_ENAB</B>
|
|
variable is set to
|
|
<I>no</I>
|
|
in
|
|
/etc/login.defs). The named group must exist, and a numerical group ID must have an existing entry.
|
|
<P>
|
|
This option sets the
|
|
<B>GROUP</B>
|
|
variable in
|
|
/etc/default/useradd.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-s</B>, <B>--shell</B> <I>SHELL</I>
|
|
<DL COMPACT><DT id="33"><DD>
|
|
Le nom de l'interpréteur de commandes du nouvel utilisateur.
|
|
<P>
|
|
This option sets the
|
|
<B>SHELL</B>
|
|
variable in
|
|
/etc/default/useradd.
|
|
</DL>
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
<P>
|
|
|
|
The system administrator is responsible for placing the default user files in the
|
|
/etc/skel/
|
|
directory (or any other skeleton directory specified in
|
|
/etc/default/useradd
|
|
or on the command line).
|
|
<A NAME="lbAH"> </A>
|
|
<H2>AVERTISSEMENTS</H2>
|
|
|
|
<P>
|
|
|
|
Vous ne pouvez pas ajouter d'utilisateur à un groupe NIS ou LDAP. Cela doit être effectué sur le serveur correspondant.
|
|
<P>
|
|
|
|
Similarly, if the username already exists in an external user database such as NIS or LDAP,
|
|
<B>useradd</B>
|
|
will deny the user account creation request.
|
|
<P>
|
|
|
|
It is usually recommended to only use usernames that begin with a lower case letter or an underscore, followed by lower case letters, digits, underscores, or dashes. They can end with a dollar sign. In regular expression terms: [a-z_][a-z0-9_-]*[$]?
|
|
<P>
|
|
|
|
On Debian, the only constraints are that usernames must neither start with a dash ('-') nor plus ('+') nor tilde ('~') nor contain a colon (':'), a comma (','), or a whitespace (space: ' ', end of line: '\n', tabulation: '\t', etc.). Note that using a slash ('/') may break the default algorithm for the definition of the user's home directory.
|
|
<P>
|
|
|
|
Les noms d'utilisateur sont limités à 16 caractères.
|
|
<A NAME="lbAI"> </A>
|
|
<H2>CONFIGURATION</H2>
|
|
|
|
<P>
|
|
|
|
The following configuration variables in
|
|
/etc/login.defs
|
|
change the behavior of this tool:
|
|
<P>
|
|
|
|
<B>CREATE_HOME</B> (boolean)
|
|
<DL COMPACT><DT id="34"><DD>
|
|
Indiquer si un répertoire personnel doit être créé par défaut pour les nouveaux utilisateurs.
|
|
<P>
|
|
Ce réglage ne s'applique pas pour les utilisateurs système, et peut être annulé sur la ligne de commande.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>GID_MAX</B> (number), <B>GID_MIN</B> (number)
|
|
<DL COMPACT><DT id="35"><DD>
|
|
Range of group IDs used for the creation of regular groups by
|
|
<B>useradd</B>,
|
|
<B>groupadd</B>, or
|
|
<B>newusers</B>.
|
|
<P>
|
|
The default value for
|
|
<B>GID_MIN</B>
|
|
(resp.
|
|
<B>GID_MAX</B>) is 1000 (resp. 60000).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>HOME_MODE</B> (number)
|
|
<DL COMPACT><DT id="36"><DD>
|
|
The mode for new home directories. If not specified, the
|
|
<B>UMASK</B>
|
|
is used to create the mode.
|
|
<P>
|
|
<B>useradd</B>
|
|
and
|
|
<B>newusers</B>
|
|
use this to set the mode of the home directory they create.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>LASTLOG_UID_MAX</B> (number)
|
|
<DL COMPACT><DT id="37"><DD>
|
|
Highest user ID number for which the lastlog entries should be updated. As higher user IDs are usually tracked by remote user identity and authentication services there is no need to create a huge sparse lastlog file for them.
|
|
<P>
|
|
No
|
|
<B>LASTLOG_UID_MAX</B>
|
|
option present in the configuration means that there is no user ID limit for writing lastlog entries.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>MAIL_DIR</B> (string)
|
|
<DL COMPACT><DT id="38"><DD>
|
|
Répertoire d'attente des courriels (« mail spool directory »). Ce paramètre est nécessaire pour manipuler les boîtes à lettres lorsque le compte d'un utilisateur est modifié ou supprimé. S'il n'est pas spécifié, une valeur par défaut définie à la compilation est utilisée.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>MAIL_FILE</B> (string)
|
|
<DL COMPACT><DT id="39"><DD>
|
|
Définir l'emplacement des boîtes aux lettres des utilisateurs relativement à leur répertoire personnel.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
The
|
|
<B>MAIL_DIR</B>
|
|
and
|
|
<B>MAIL_FILE</B>
|
|
variables are used by
|
|
<B>useradd</B>,
|
|
<B>usermod</B>, and
|
|
<B>userdel</B>
|
|
to create, move, or delete the user's mail spool.
|
|
<P>
|
|
|
|
<B>MAX_MEMBERS_PER_GROUP</B> (number)
|
|
<DL COMPACT><DT id="40"><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>PASS_MAX_DAYS</B> (number)
|
|
<DL COMPACT><DT id="41"><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="42"><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="43"><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>
|
|
|
|
<P>
|
|
|
|
<B>SUB_GID_MIN</B> (number), <B>SUB_GID_MAX</B> (number), <B>SUB_GID_COUNT</B> (number)
|
|
<DL COMPACT><DT id="44"><DD>
|
|
If
|
|
/etc/subuid
|
|
exists, the commands
|
|
<B>useradd</B>
|
|
and
|
|
<B>newusers</B>
|
|
(unless the user already have subordinate group IDs) allocate
|
|
<B>SUB_GID_COUNT</B>
|
|
unused group IDs from the range
|
|
<B>SUB_GID_MIN</B>
|
|
to
|
|
<B>SUB_GID_MAX</B>
|
|
for each new user.
|
|
<P>
|
|
The default values for
|
|
<B>SUB_GID_MIN</B>,
|
|
<B>SUB_GID_MAX</B>,
|
|
<B>SUB_GID_COUNT</B>
|
|
are respectively 100000, 600100000 and 65536.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>SUB_UID_MIN</B> (number), <B>SUB_UID_MAX</B> (number), <B>SUB_UID_COUNT</B> (number)
|
|
<DL COMPACT><DT id="45"><DD>
|
|
If
|
|
/etc/subuid
|
|
exists, the commands
|
|
<B>useradd</B>
|
|
and
|
|
<B>newusers</B>
|
|
(unless the user already have subordinate user IDs) allocate
|
|
<B>SUB_UID_COUNT</B>
|
|
unused user IDs from the range
|
|
<B>SUB_UID_MIN</B>
|
|
to
|
|
<B>SUB_UID_MAX</B>
|
|
for each new user.
|
|
<P>
|
|
The default values for
|
|
<B>SUB_UID_MIN</B>,
|
|
<B>SUB_UID_MAX</B>,
|
|
<B>SUB_UID_COUNT</B>
|
|
are respectively 100000, 600100000 and 65536.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>SYS_GID_MAX</B> (number), <B>SYS_GID_MIN</B> (number)
|
|
<DL COMPACT><DT id="46"><DD>
|
|
Range of group IDs used for the creation of system groups by
|
|
<B>useradd</B>,
|
|
<B>groupadd</B>, or
|
|
<B>newusers</B>.
|
|
<P>
|
|
The default value for
|
|
<B>SYS_GID_MIN</B>
|
|
(resp.
|
|
<B>SYS_GID_MAX</B>) is 101 (resp.
|
|
<B>GID_MIN</B>-1).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>SYS_UID_MAX</B> (number), <B>SYS_UID_MIN</B> (number)
|
|
<DL COMPACT><DT id="47"><DD>
|
|
Range of user IDs used for the creation of system users by
|
|
<B>useradd</B>
|
|
or
|
|
<B>newusers</B>.
|
|
<P>
|
|
The default value for
|
|
<B>SYS_UID_MIN</B>
|
|
(resp.
|
|
<B>SYS_UID_MAX</B>) is 101 (resp.
|
|
<B>UID_MIN</B>-1).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>UID_MAX</B> (number), <B>UID_MIN</B> (number)
|
|
<DL COMPACT><DT id="48"><DD>
|
|
Range of user IDs used for the creation of regular users by
|
|
<B>useradd</B>
|
|
or
|
|
<B>newusers</B>.
|
|
<P>
|
|
The default value for
|
|
<B>UID_MIN</B>
|
|
(resp.
|
|
<B>UID_MAX</B>) is 1000 (resp. 60000).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>UMASK</B> (number)
|
|
<DL COMPACT><DT id="49"><DD>
|
|
Valeur d'initialisation du masque de permissions. S'il n'est pas précisé, le masque des permissions sera initialisé à 022.
|
|
<P>
|
|
<B>useradd</B>
|
|
and
|
|
<B>newusers</B>
|
|
use this mask to set the mode of the home directory they create if
|
|
<B>HOME_MODE</B>
|
|
is not set.
|
|
<P>
|
|
It is also used by
|
|
<B>pam_umask</B>
|
|
as the default umask value.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>USERGROUPS_ENAB</B> (boolean)
|
|
<DL COMPACT><DT id="50"><DD>
|
|
If set to
|
|
<I>yes</I>,
|
|
<B>userdel</B>
|
|
will remove the user's group if it contains no more members, and
|
|
<B>useradd</B>
|
|
will create by default a group with the name of the user.
|
|
</DL>
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>FICHIERS</H2>
|
|
|
|
<P>
|
|
|
|
/etc/passwd
|
|
<DL COMPACT><DT id="51"><DD>
|
|
Informations sur les comptes des utilisateurs.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/shadow
|
|
<DL COMPACT><DT id="52"><DD>
|
|
Informations sécurisées sur les comptes utilisateurs.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/group
|
|
<DL COMPACT><DT id="53"><DD>
|
|
Informations sur les groupes.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/gshadow
|
|
<DL COMPACT><DT id="54"><DD>
|
|
Informations sécurisées sur les groupes.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/default/useradd
|
|
<DL COMPACT><DT id="55"><DD>
|
|
Valeurs par défaut pour la création de comptes.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/skel/
|
|
<DL COMPACT><DT id="56"><DD>
|
|
Répertoire contenant les fichiers par défaut.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/subgid
|
|
<DL COMPACT><DT id="57"><DD>
|
|
IDs des groupes subalternes d'un utilisateur.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/subuid
|
|
<DL COMPACT><DT id="58"><DD>
|
|
IDs de utilisateurs subalternes d'un utilisateur.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/login.defs
|
|
<DL COMPACT><DT id="59"><DD>
|
|
Configuration de la suite des mots de passe cachés « shadow password ».
|
|
</DL>
|
|
|
|
<A NAME="lbAK"> </A>
|
|
<H2>VALEURS DE RETOUR</H2>
|
|
|
|
<P>
|
|
|
|
The
|
|
<B>useradd</B>
|
|
command exits with the following values:
|
|
<P>
|
|
|
|
<I>0</I>
|
|
<DL COMPACT><DT id="60"><DD>
|
|
success
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>1</I>
|
|
<DL COMPACT><DT id="61"><DD>
|
|
can't update password file
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>2</I>
|
|
<DL COMPACT><DT id="62"><DD>
|
|
invalid command syntax
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>3</I>
|
|
<DL COMPACT><DT id="63"><DD>
|
|
invalid argument to option
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>4</I>
|
|
<DL COMPACT><DT id="64"><DD>
|
|
UID already in use (and no
|
|
<B>-o</B>)
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>6</I>
|
|
<DL COMPACT><DT id="65"><DD>
|
|
specified group doesn't exist
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>9</I>
|
|
<DL COMPACT><DT id="66"><DD>
|
|
username already in use
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>10</I>
|
|
<DL COMPACT><DT id="67"><DD>
|
|
can't update group file
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>12</I>
|
|
<DL COMPACT><DT id="68"><DD>
|
|
can't create home directory
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>14</I>
|
|
<DL COMPACT><DT id="69"><DD>
|
|
can't update SELinux user mapping
|
|
</DL>
|
|
|
|
<A NAME="lbAL"> </A>
|
|
<H2>VOIR AUSSI</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+chfn">chfn</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+chsh">chsh</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+passwd">passwd</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?3+crypt">crypt</A></B>(3),
|
|
<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?5+login.defs">login.defs</A></B>(5),
|
|
<B><A HREF="/cgi-bin/man/man2html?8+newusers">newusers</A></B>(8),
|
|
<B><A HREF="/cgi-bin/man/man2html?5+subgid">subgid</A></B>(5), <B><A HREF="/cgi-bin/man/man2html?5+subuid">subuid</A></B>(5),
|
|
<B><A HREF="/cgi-bin/man/man2html?8+userdel">userdel</A></B>(8),
|
|
<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="70"><A HREF="#lbAB">NOM</A><DD>
|
|
<DT id="71"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="72"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="73"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DL>
|
|
<DT id="74"><A HREF="#lbAF">Modifier les valeurs par défaut</A><DD>
|
|
</DL>
|
|
<DT id="75"><A HREF="#lbAG">NOTES</A><DD>
|
|
<DT id="76"><A HREF="#lbAH">AVERTISSEMENTS</A><DD>
|
|
<DT id="77"><A HREF="#lbAI">CONFIGURATION</A><DD>
|
|
<DT id="78"><A HREF="#lbAJ">FICHIERS</A><DD>
|
|
<DT id="79"><A HREF="#lbAK">VALEURS DE RETOUR</A><DD>
|
|
<DT id="80"><A HREF="#lbAL">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>
|