man-pages/it/man8/useradd.8.html
2021-03-31 01:06:50 +01:00

979 lines
23 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: Comandi per la gestione del si (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">&nbsp;</A>
<H2>NOME</H2>
useradd - crea un nuovo utente o aggiorna le informazioni predefinite per i nuovi utenti
<A NAME="lbAC">&nbsp;</A>
<H2>SINOSSI</H2>
<DL COMPACT>
<DT id="1">
<B>useradd</B> [<I>opzioni</I>] <I>LOGIN</I>
<DT id="2">
<B>useradd</B> -D
<DT id="3">
<B>useradd</B> -D [<I>opzioni</I>]
</DL>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIZIONE</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">&nbsp;</A>
<H2>OPZIONI</H2>
<P>
The options which apply to the
<B>useradd</B>
command are:
<P>
<B>--badname</B>&nbsp;
<DL COMPACT><DT id="4"><DD>
Allow names that do not conform to standards.
</DL>
<P>
<B>-b</B>, <B>--base-dir</B>&nbsp;<I>BASE_DIR</I>
<DL COMPACT><DT id="5"><DD>
The default base directory for the system if
<B>-d</B>&nbsp;<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>&nbsp;<I>COMMENT</I>
<DL COMPACT><DT id="6"><DD>
Un testo qualsiasi. Di norma &egrave; una breve descrizione del login, ed &egrave; attualmente usato come nome completo dell'utente.
</DL>
<P>
<B>-d</B>, <B>--home-dir</B>&nbsp;<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>
Vedere oltre, la sezione &laquo;Cambiare i valori predefiniti&raquo;.
</DL>
<P>
<B>-e</B>, <B>--expiredate</B>&nbsp;<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>&nbsp;<I>INACTIVE</I>
<DL COMPACT><DT id="10"><DD>
Il numero di giorni dopo la scadenza della password prima che l'account venga permanentemente disabilitato. Un valore pari a 0 disabilita l'account non appena la password &egrave; scaduta, ed un valore pari a -1 disabilita questa funzionalit&agrave;.
<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>&nbsp;<I>GROUP</I>
<DL COMPACT><DT id="11"><DD>
Il nome o numero del gruppo di connessione iniziale dell'utente. Il nome del gruppo deve esistere. Un numero di gruppo deve riferirsi ad un gruppo gi&agrave; esistente.
<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>&nbsp;<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>
Mostra un messaggio di aiuto ed esce.
</DL>
<P>
<B>-k</B>, <B>--skel</B>&nbsp;<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>
Se possibile vengono copiate le ACL e gli attributi estesi.
</DL>
<P>
<B>-K</B>, <B>--key</B>&nbsp;<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>&nbsp;<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>&nbsp;<I>UID_MIN</I>=<I>100</I>&nbsp;
<B>-K</B>&nbsp;<I>UID_MAX</I>=<I>499</I>
</DL>
<P>
<B>-l</B>, <B>--no-log-init</B>
<DL COMPACT><DT id="16"><DD>
Non aggiunge l'utente ai database &laquo;lastlog&raquo; e &laquo;faillog&raquo;.
<P>
By default, the user's entries in the lastlog and faillog databases are reset to avoid reusing the entry from a previously deleted user.
<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>
Permette la creazione di un utente con un UID duplicato (non unico).
<P>
This option is only valid in combination with the
<B>-u</B>
option.
</DL>
<P>
<B>-p</B>, <B>--password</B>&nbsp;<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>
Ci si deve accertare che la password rispetti le norme delle password del sistema.
</DL>
<P>
<B>-r</B>, <B>--system</B>
<DL COMPACT><DT id="22"><DD>
Crea un account di sistema.
<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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<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>
Crea un gruppo con lo stesso nome dell'utente e aggiunge l'utente al gruppo stesso.
<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>&nbsp;<I>SEUSER</I>
<DL COMPACT><DT id="28"><DD>
L'utente SELinux per questo login utente. Lasciando questo campo vuoto si fa in modo che il sistema selezioni automaticamente l'utente SELinux.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H3>Cambiare i valori predefiniti</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>&nbsp;<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>&nbsp;<I>EXPIRE_DATE</I>
<DL COMPACT><DT id="30"><DD>
La data in cui l'account dell'utente verr&agrave; disabilitato.
<P>
This option sets the
<B>EXPIRE</B>
variable in
/etc/default/useradd.
</DL>
<P>
<B>-f</B>, <B>--inactive</B>&nbsp;<I>INACTIVE</I>
<DL COMPACT><DT id="31"><DD>
Il numero di giorni dopo la scadenza di una password prima che l'account venga disabilitato.
<P>
This option sets the
<B>INACTIVE</B>
variable in
/etc/default/useradd.
</DL>
<P>
<B>-g</B>, <B>--gid</B>&nbsp;<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>&nbsp;<I>SHELL</I>
<DL COMPACT><DT id="33"><DD>
Il nome della shell di login per il nuovo utente.
<P>
This option sets the
<B>SHELL</B>
variable in
/etc/default/useradd.
</DL>
<A NAME="lbAG">&nbsp;</A>
<H2>NOTE</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">&nbsp;</A>
<H2>AVVISI/CAVEAT</H2>
<P>
Non &egrave; possibile aggiungere un utente ad un gruppo NIS o LDAP. Questo deve essere fatto sul server corrispondente.
<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>
I nomi utente non possono eccedere i 32 caratteri di lunghezza.
<A NAME="lbAI">&nbsp;</A>
<H2>CONFIGURAZIONE</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>
Indica se per i nuovi utenti va creata la directory home.
<P>
Questa impostazione non viene applicata agli utenti di sistema e pu&ograve; essere modificata sulla riga di comando.
</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>
La directory di spool per la posta. Questa &egrave; necessaria per manipolare la casella di posta quando il corrispondente account utente viene modificato o cancellato. Se non &egrave; specificata viene utilizzato un valore impostato al momento della compilazione.
</DL>
<P>
<B>MAIL_FILE</B> (string)
<DL COMPACT><DT id="39"><DD>
Imposta la posizione delle caselle di posta degli utenti relative alla loro directory home.
</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>
Il valore predefinito &egrave; 0, che non pone nessun limite al numero di membri per gruppo.
<P>
Questa opzione (dividi gruppo) permette di limitare la lunghezza delle righe nel file &laquo;group&raquo;. Questo &egrave; utile per essere certi che le righe per gruppi NIS non eccedano i 1024 caratteri.
<P>
Se si deve impostare questo limite, si pu&ograve; usare 25.
<P>
Nota: la divisione dei gruppi potrebbe non essere supportata da ogni strumento (anche all'interno del pacchetto Shadow). Non si dovrebbe utilizzare questa variabile a meno di esserci forzati.
</DL>
<P>
<B>PASS_MAX_DAYS</B> (number)
<DL COMPACT><DT id="41"><DD>
Il numero massimo di giorni che una password pu&ograve; essere utilizzata. Se la password &egrave; pi&ugrave; vecchia verr&agrave; imposto il suo cambiamento. Se non specificato viene assunto -1 (che disabilita questo controllo).
</DL>
<P>
<B>PASS_MIN_DAYS</B> (number)
<DL COMPACT><DT id="42"><DD>
Il numero minimo di giorni tra due cambiamenti di password. Ogni tentativo di cambiare la password prima di questo periodo verr&agrave; rifiutato. Se non specificato viene assunto -1 (che disabilita questo controllo).
</DL>
<P>
<B>PASS_WARN_AGE</B> (number)
<DL COMPACT><DT id="43"><DD>
Il numero di giorni per i quali un utente va avvisato che la sua password sta per scadere. Se zero l'utente viene avvisato solo alla scadenza. Un valore negativo indica che non si deve avvisare mai. Se non specificato allora non c'&egrave; nessun avviso.
</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>
La maschera di permessi alla creazione dei file &egrave; inizializzata con questo valore. Se non specificato la maschera viene impostata a 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">&nbsp;</A>
<H2>FILE</H2>
<P>
/etc/passwd
<DL COMPACT><DT id="51"><DD>
Informazioni sugli account utente.
</DL>
<P>
/etc/shadow
<DL COMPACT><DT id="52"><DD>
Informazioni sicure sugli account utente.
</DL>
<P>
/etc/group
<DL COMPACT><DT id="53"><DD>
Informazioni sugli account di gruppo.
</DL>
<P>
/etc/gshadow
<DL COMPACT><DT id="54"><DD>
Informazioni sicure sugli account di gruppo.
</DL>
<P>
/etc/default/useradd
<DL COMPACT><DT id="55"><DD>
Valori predefiniti per la creazione dell'account.
</DL>
<P>
/etc/skel/
<DL COMPACT><DT id="56"><DD>
Directory contenente i file predefiniti.
</DL>
<P>
/etc/subgid
<DL COMPACT><DT id="57"><DD>
Per user subordinate group IDs.
</DL>
<P>
/etc/subuid
<DL COMPACT><DT id="58"><DD>
Per user subordinate user IDs.
</DL>
<P>
/etc/login.defs
<DL COMPACT><DT id="59"><DD>
Configurazione del pacchetto password shadow
</DL>
<A NAME="lbAK">&nbsp;</A>
<H2>VALORI RESTITUITI</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">&nbsp;</A>
<H2>VEDERE ANCHE</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">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="70"><A HREF="#lbAB">NOME</A><DD>
<DT id="71"><A HREF="#lbAC">SINOSSI</A><DD>
<DT id="72"><A HREF="#lbAD">DESCRIZIONE</A><DD>
<DT id="73"><A HREF="#lbAE">OPZIONI</A><DD>
<DL>
<DT id="74"><A HREF="#lbAF">Cambiare i valori predefiniti</A><DD>
</DL>
<DT id="75"><A HREF="#lbAG">NOTE</A><DD>
<DT id="76"><A HREF="#lbAH">AVVISI/CAVEAT</A><DD>
<DT id="77"><A HREF="#lbAI">CONFIGURAZIONE</A><DD>
<DT id="78"><A HREF="#lbAJ">FILE</A><DD>
<DT id="79"><A HREF="#lbAK">VALORI RESTITUITI</A><DD>
<DT id="80"><A HREF="#lbAL">VEDERE ANCHE</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:05 GMT, March 31, 2021
</BODY>
</HTML>