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

482 lines
12 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of NEWUSERS</TITLE>
</HEAD><BODY>
<H1>NEWUSERS</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>
newusers - aggiorna e crea nuovi utenti in blocco
<A NAME="lbAC">&nbsp;</A>
<H2>SINOSSI</H2>
<DL COMPACT>
<DT id="1">
<B>newusers</B> [<I>opzioni</I>] [<I>file</I>]
</DL>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIZIONE</H2>
<P>
<DD>The
<B>newusers</B>
command reads a
<I>file</I>
(or the standard input by default) and uses this information to update a set of existing users or to create new users. Each line is in the same format as the standard password file (see
<B><A HREF="/cgi-bin/man/man2html?5+passwd">passwd</A></B>(5)) with the exceptions explained below:
<P>
pw_name:pw_passwd:pw_uid:pw_gid:pw_gecos:pw_dir:pw_shell
<P>
<I>pw_name</I>
<DL COMPACT><DT id="2"><DD>
Il nome dell'utente.
<P>
It can be the name of a new user or the name of an existing user (or a user created before by
<B>newusers</B>). In case of an existing user, the user's information will be changed, otherwise a new user will be created.
</DL>
<P>
<I>pw_passwd</I>
<DL COMPACT><DT id="3"><DD>
Questo campo verr&agrave; cifrato e utilizzato come nuovo valore per la password cifrata.
</DL>
<P>
<I>pw_uid</I>
<DL COMPACT><DT id="4"><DD>
Definisce l'UID dell'utente.
<P>
If the field is empty, a new (unused) UID will be defined automatically by
<B>newusers</B>.
<P>
Se questo campo contiene un numero, verr&agrave; utilizzato come UID.
<P>
If this field contains the name of an existing user (or the name of a user created before by
<B>newusers</B>), the UID of the specified user will be used.
<P>
Se viene cambiato l'UID di un utente esistente, la propriet&agrave; dei file di propriet&agrave; dell'utente stesso andr&agrave; cambiata manualmente.
</DL>
<P>
<I>pw_gid</I>
<DL COMPACT><DT id="5"><DD>
Definisce il l'ID del gruppo primario dell'utente.
<P>
If this field contains the name of an existing group (or a group created before by
<B>newusers</B>), the GID of this group will be used as the primary group ID for the user.
<P>
Se questo campo &egrave; numerico, questo numero verr&agrave; utilizzato come ID del gruppo primario dell'utente. Se non esiste nessun gruppo con quel GID, ne viene creato uno con il nome dell'utente e il GID specificato.
<P>
If this field is empty, a new group will be created with the name of the user and a GID will be automatically defined by
<B>newusers</B>
to be used as the primary group ID for the user and as the GID for the new group.
<P>
If this field contains the name of a group which does not exist (and was not created before by
<B>newusers</B>), a new group will be created with the specified name and a GID will be automatically defined by
<B>newusers</B>
to be used as the primary group ID for the user and GID for the new group.
</DL>
<P>
<I>pw_gecos</I>
<DL COMPACT><DT id="6"><DD>
Questo campo viene copiato nel campo GECOS dell'utente.
</DL>
<P>
<I>pw_dir</I>
<DL COMPACT><DT id="7"><DD>
Questo campo &egrave; utilizzato per impostare la directory home dell'utente.
<P>
Se questo campo non contiene il nome di una directory esistente la directory viene creata, assegnandone la propriet&agrave; all'utente che si sta definendo o aggiornando e al suo gruppo primario.
<P>
If the home directory of an existing user is changed,
<B>newusers</B>
does not move or copy the content of the old directory to the new location. This should be done manually.
</DL>
<P>
<I>pw_shell</I>
<DL COMPACT><DT id="8"><DD>
Questo campo definisce la shell dell'utente. Su questo campo non viene fatto nessun controllo.
</DL>
<P>
<B>newusers</B>
first tries to create or change all the specified users, and then write these changes to the user or group databases. If an error occurs (except in the final writes to the databases), no changes are committed to the databases.
<P>
Durante il primo passaggio gli utenti vengono creati con la password bloccata (e le password non sono modificate nel caso di utenti che non sono creati). Un secondo passaggio si occupa di aggiornare tutte le password usando PAM. I problemi durante l'aggiornamento delle password sono riportati, ma non interrompono la modifica delle altre password.
<P>
Questo comando &egrave; appositamente pensato per grossi sistemi nei quali molti account sono aggiornati allo stesso tempo.
<A NAME="lbAE">&nbsp;</A>
<H2>OPZIONI</H2>
<P>
The options which apply to the
<B>newusers</B>
command are:
<P>
<B>--badname</B>&nbsp;
<DL COMPACT><DT id="9"><DD>
Allow names that do not conform to standards.
</DL>
<P>
<B>-h</B>, <B>--help</B>
<DL COMPACT><DT id="10"><DD>
Mostra un messaggio di aiuto ed esce.
</DL>
<P>
<B>-r</B>, <B>--system</B>
<DL COMPACT><DT id="11"><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
login.defs, instead of
<B>UID_MIN</B>-<B>UID_MAX</B>
(and their
<B>GID</B>
counterparts for the creation of groups).
</DL>
<P>
<B>-R</B>, <B>--root</B>&nbsp;<I>CHROOT_DIR</I>
<DL COMPACT><DT id="12"><DD>
Apply changes in the
<I>CHROOT_DIR</I>
directory and use the configuration files from the
<I>CHROOT_DIR</I>
directory.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>AVVISI/CAVEAT</H2>
<P>
Il file di input deve essere protetto poich&eacute; contiene password non cifrate.
<A NAME="lbAG">&nbsp;</A>
<H2>CONFIGURAZIONE</H2>
<P>
The following configuration variables in
/etc/login.defs
change the behavior of this tool:
<P>
<B>GID_MAX</B> (number), <B>GID_MIN</B> (number)
<DL COMPACT><DT id="13"><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="14"><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>MAX_MEMBERS_PER_GROUP</B> (number)
<DL COMPACT><DT id="15"><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="16"><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="17"><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="18"><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="19"><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="20"><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="21"><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="22"><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="23"><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="24"><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>
<A NAME="lbAH">&nbsp;</A>
<H2>FILE</H2>
<P>
/etc/passwd
<DL COMPACT><DT id="25"><DD>
Informazioni sugli account utente.
</DL>
<P>
/etc/shadow
<DL COMPACT><DT id="26"><DD>
Informazioni sicure sugli account utente.
</DL>
<P>
/etc/group
<DL COMPACT><DT id="27"><DD>
Informazioni sugli account di gruppo.
</DL>
<P>
/etc/gshadow
<DL COMPACT><DT id="28"><DD>
Informazioni sicure sugli account di gruppo.
</DL>
<P>
/etc/login.defs
<DL COMPACT><DT id="29"><DD>
Configurazione del pacchetto password shadow
</DL>
<P>
/etc/pam.d/newusers
<DL COMPACT><DT id="30"><DD>
PAM configuration for
<B>newusers</B>.
</DL>
<P>
/etc/subgid
<DL COMPACT><DT id="31"><DD>
Per user subordinate group IDs.
</DL>
<P>
/etc/subuid
<DL COMPACT><DT id="32"><DD>
Per user subordinate user IDs.
</DL>
<A NAME="lbAI">&nbsp;</A>
<H2>VEDERE ANCHE</H2>
<P>
<B><A HREF="/cgi-bin/man/man2html?5+login.defs">login.defs</A></B>(5),
<B><A HREF="/cgi-bin/man/man2html?1+passwd">passwd</A></B>(1),
<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+useradd">useradd</A></B>(8).
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="33"><A HREF="#lbAB">NOME</A><DD>
<DT id="34"><A HREF="#lbAC">SINOSSI</A><DD>
<DT id="35"><A HREF="#lbAD">DESCRIZIONE</A><DD>
<DT id="36"><A HREF="#lbAE">OPZIONI</A><DD>
<DT id="37"><A HREF="#lbAF">AVVISI/CAVEAT</A><DD>
<DT id="38"><A HREF="#lbAG">CONFIGURAZIONE</A><DD>
<DT id="39"><A HREF="#lbAH">FILE</A><DD>
<DT id="40"><A HREF="#lbAI">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:04 GMT, March 31, 2021
</BODY>
</HTML>