Provided by:
adduser_3.108ubuntu1_all 
NOME
adduser, addgroup - aggiunge un utente o un gruppo al sistema
SINTASSI
adduser [opzioni] [--home DIR] [--shell|-s SHELL] [--no-create-home]
[--uid ID] [--firstuid ID] [--lastuid ID] [--ingroup GRUPPO | --gid ID]
[--disabled-password] [--disabled-login] [--gecos GECOS]
[--add_extra_groups] utente
adduser --system [opzioni] [--home DIR] [--shell SHELL]
[--no-create-home] [--uid ID] [--group | --ingroup GRUPPO | --gid ID]
[--disabled-password] [--disabled-login] [--gecos GECOS] utente
addgroup [opzioni] [--gid ID] gruppo
addgroup --system [opzioni] [--gid ID] gruppo
adduser [opzioni] utente gruppo
OPZIONI COMUNI
[--quiet] [--debug] [--force-badname] [--help|-h] [--version] [--conf
FILE]
DESCRIZIONE
adduser e addgroup aggiungono utenti e gruppi al sistema in base alle
opzioni sulla riga di comando e alla configurazione in
/etc/adduser.conf. Sono delle interfacce semplificate per gli strumenti
di basso livello useradd, groupadd e usermod, con la configurazione
predefinita scelgono i valori di UID e GID in base alla policy Debian,
creano la directory home seguendo uno scheletro della configurazione,
permettono di eseguire script personalizzati e hanno molte altre
funzionalità. adduser e addgroup possono essere eseguiti in cinque
modalità diverse:
Aggiunta di un utente normale
Se eseguito con un solo argomento e senza le opzioni --system e
--group, adduser aggiunge un utente normale.
adduser sceglie il primo UID disponibile dall’intervallo specificato
nel file di configurazione per gli utenti normali. L’UID può essere
scelto forzatamente usando l’opzione --uid.
L’intervallo specificato nel file di configurazione può essere ignorato
usando le opzioni --firstuid e --lastuid.
By default, each user in Debian GNU/Linux is given a corresponding
group with the same name. Usergroups allow group writable directories
to be easily maintained by placing the appropriate users in the new
group, setting the set-group-ID bit in the directory, and ensuring that
all users use a umask of 002. If this option is turned off by setting
USERGROUPS to no, all users’ GIDs are set to USERS_GID. Users’ primary
groups can also be overridden from the command line with the --gid or
--ingroup options to set the group by id or name, respectively. Also,
users can be added to one or more groups defined in adduser.conf either
by setting ADD_EXTRA_GROUPS to 1 in adduser.conf, or by passing
--add_extra_groups on the commandline.
adduser crea le directory home in base ai valori di DHOME, GROUPHOMES e
LETTERHOMES. Comunque directory home e shell possono essere forzate
usando rispettivamente le opzioni --home e --shell sulla riga di
comando. Sulla directory home viene attivato il bit set-group-ID se
USERGROUPS ha valore yes, in questo modo tutti i file creati
all’interno della directory home dell’utente apparterranno al gruppo
corretto.
adduser copia i file da SKEL nella directory home e richiede le
informazioni (finger) per il campo gecos e la password. Il valore per
il campo gecos può essere inserito anche usando l’opzione --gecos. Con
l’opzione --disabled-login l’account viene creato ma non è possibile
accedere fino a quando non viene impostata una password. Con l’opzione
--disabled-password non viene impostata la password, è comunque
possibile accedere al sistema (per esempio tramite SSH con chiavi RSA).
Se esiste il file /usr/local/sbin/adduser.local, viene eseguito dopo
che l’utente è stato creato in modo da applicare qualsiasi impostazione
specifica del sistema locale. Gli argomenti passati a adduser.local
sono:
nomeutente, uid, gid e directory-home
Il valore della variabile d’ambiente VERBOSE viene impostato in base
alle seguenti regole:
0 se è stata usata l’opzione --quiet
1 se non sono state usate le opzioni --quiet e --debug
2 se è stata usata l’opzione --debug
(Le stesse regole si applicano alla variabile DEBUG, però l’uso
di DEBUG è deprecato e sarà rimosso nelle prossime versioni di
adduser).
Aggiunta di un utente di sistema
Se eseguito con un solo argomento e con l’opzione --system, adduser
aggiunge un utente di sistema. Se già esiste un utente con lo stesso
nome nell’intervallo degli UID di sistema (oppure, se è specificato lo
UID, se già esiste un utente con lo stesso UID), adduser esce mostrando
un messaggio d’avviso.
adduser will choose the first available UID from the range specified
for system users in the configuration file (FIRST_SYSTEM_UID and
LAST_SYSTEM_UID). If you want to have a specific UID, you can specify
it using the --uid option.
Gli utenti di sistema sono inseriti nel gruppo nogroup. Per inserire il
nuovo utente di sistema in un gruppo esistente si possono usare le
opzioni --gid o --ingroup. Per inserire il nuovo utente di sistema in
un nuovo gruppo con lo stesso ID usare l’opzione --group.
La directory home è creata secondo le stesse regole dgli utenti
normali. Il nuovo utente di sistema ha come shell /bin/false (a meno
che non sia specificato un valore diverso usando l’opzione --shell) e
non può fare il login. Lo scheletro dei file di configurazione non
viene copiato.
Aggiunta di un gruppo
Se adduser è richiamato con l’opzione --group e senza l’opzione
--system oppure se viene richiamato addgroup, viene aggiunto un gruppo.
A GID will be chosen from the range specified for system GIDS in the
configuration file (FIRST_GID, LAST_GID). To override that mechanism
you can give the GID using the --gid option.
Il gruppo viene creato senza nessun utente al suo interno.
Aggiunta di un gruppo di sistema
Se addgroup è richiamato con l’opzione --system, viene aggiunto un
gruppo di sistema.
A GID will be chosen from the range specified for system GIDS in the
configuration file (FIRST_SYSTEM_GID, LAST_SYSTEM_GID). To override
that mechanism you can give the GID using the --gid option.
Il gruppo viene creato senza nessun utente al suo interno.
Aggiunta di un utente esistente a un gruppo esistente
Se eseguito con due argomenti, adduser aggiunge un utente esistente a
un gruppo esistente.
OPZIONI
--conf FILE
Usa FILE al posto di /etc/adduser.conf.
--disabled-login
Non esegue passwd per l’impostazione della password. L’utente
non potrà usare il proprio account fino a quando non sarà
assegnata una password.
--disabled-password
Simile a --disabled-login però il login è ancora concesso (per
esempio tramite SSH con chiavi RSA) ma non tramite
l’autenticazione con password.
--force-badname
By default, user and group names are checked against the
configurable regular expression NAME_REGEX (or NAME_REGEX_SYSTEM
if --system is specified) specified in the configuration file.
This option forces adduser and addgroup to apply only a weak
check for validity of the name.
--gecos GECOS
Set the gecos field for the new entry generated. adduser will
not ask for finger information if this option is given.
--gid ID
Durante la creazione di un gruppo questa opzione forza il nuovo
GID al valore passato. Quando viene creato un utente questa
opzione aggiunge l’utente al gruppo.
--group
Quando è usato con --system viene creato un gruppo con lo stesso
nome e lo stesso UID dell’utente di sistema. Se invece l’opzione
--system non è usata, viene creato un gruppo omonimo. Questo è
il comportamento predefinito del programma quando è richiamato
con addgroup.
--help Mostra le informazioni sull’uso del programma.
--home DIR
Usa DIR come directory home dell’utente al posto di quella
definita nel file di configurazione. Se la directory non esiste
viene creata e al suo interno sono copiati i file di scheletro.
--shell SHELL
Usa SHELL come shell di login per l’utente al posto di quella
definita nel file di configurazione.
--ingroup GRUPPO
Add the new user to GROUP instead of a usergroup or the default
group defined by USERS_GID in the configuration file. This
affects the users primary group. To add additional groups, see
the add_extra_groups option
--no-create-home
Non crea la directory home, anche se non esiste.
--quiet
Nasconde i messaggi informativi, mostra solo avvertimenti ed
errori.
--debug
Mostra più dettagli, utile per approfondire l’analisi di un
problema con adduser.
--system
Create a system user or group.
--uid ID
Force the new userid to be the given number. adduser will fail
if the userid is already taken.
--firstuid ID
Override the first uid in the range that the uid is chosen from
(overrides FIRST_UID specified in the configuration file).
--lastuid ID
Override the last uid in the range that the uid is chosen from (
LAST_UID )
--add_extra_groups
Add new user to extra groups defined in the configuration file.
--version
Mostra le informazioni su versione e copyright del programma.
EXIT VALUES
0 The user exists as specified. This can have 2 causes: The user
was created by adduser or the user was already present on the
system before adduser was invoked. Invoking adduser a second
time with the same parameters as before also returns 0.
1 Creating the user or group failed because it was already present
with other UID/GID than specified. The username or groupname was
rejected because of a mismatch with the configured regular
expressions, see adduser.conf(5). Adduser has been aborted by a
signal.
Or for many other yet undocumented reasons which are printed to
console then. You may then consider to remove --quiet to make
adduser more verbose.
FILE
/etc/adduser.conf
Default configuration file for adduser and addgroup
VEDERE ANCHE
adduser.conf(5), deluser(8), useradd(8), groupadd(8), usermod(8),
Debian Policy 9.2.2.
TRADUTTORE
Questa pagina di manuale è stata tradotta da Luca Monducci il 4
febbraio 2006.
Se in questa traduzione si riscontrano degli errori, si prega di
segnalarli sulla mailing list <debian-l10n-italian@lists.debian.org>
COPYRIGHT
Copyright (C) 1997, 1998, 1999 Guy Maor. Modifications by Roland
Bauerschmidt and Marc Haber. Additional patches by Joerg Hoh and
Stephen Gran.
Copyright (C) 1995 Ted Hajek, con un grosso aiuto dal pacchetto adduser
originale di Debian
Copyright (C) 1994 Ian Murdock. adduser è software libero; si veda la
GNU General Public Licence versione 2 o successiva per le condizioni
sulla copia. Non c’è nessuna garanzia.