Provided by:
adduser_3.112+nmu1ubuntu5_all 
NAME
adduser, addgroup -
adduser [options] [--home DIR] [--shell SHELL] [--no-create-home]
[--uid ID] [--firstuid ID] [--lastuid ID] [--ingroup GROUP | --gid ID]
[--disabled-password] [--disabled-login] [--gecos GECOS]
[--add_extra_groups] [--encrypt-home] user
adduser --system [] [--home ] [--shell ] [--no-create-home] [--uid ID]
[--group | --ingroup | --gid ID] [--disabled-password]
[--disabled-login] [--gecos GECOS]
addgroup [] [--gid ID]
addgroup --system [] [--gid ID]
adduser []
[--quiet] [--debug] [--force-badname] [--help|-h] [--version] [--conf ]
adduser addgroup , , /etc/adduser.conf. groupadd usermod,
Debian UID GID, , , . adduser addgroup :
--system --group, adduser .
adduser UID , . UID --uid.
, , --firstuid --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 DHOME, GROUPHOMES LETTERHOMES. --home, --shell.
Set-group-ID , USERGROUPS yes, , , .
adduser will copy files from SKEL into the home directory and prompt
for finger (gecos) information and a password. The gecos may also be
set with the --gecos option. With the --disabled-login option, the
account will be created but will be disabled until a password is set.
The --disabled-password option will not set a password, but login is
still possible (for example with SSH RSA keys). To set up an encrypted
home directory for the new user, add the --encrypt-home option. For
more information, refer to the -b option of ecryptfs-setup-private(1).
/usr/local/sbin/adduser.local , , . adduser.local:
_ uid gid _
VERBOSE :
0, --quiet
1, --quiet --debug
2, --debug
( DEBUG, DEBUG , adduser.)
If called with one non-option argument and the --system option, adduser
will add a system user. If a user with the same name already exists in
the system uid range (or, if the uid is specified, if a user with that
uid already exists), adduser will exit with a warning. This warning can
be suppressed by adding "--quiet".
adduser UID , (FIRST_SYSTEM_UID LAST_SYSTEM_UID). - UID,
--uid.
, nogroup. , --gid --ingroup. ID, --group.
. /bin/false ( --shell) . .
adduser --group --system addgroup, .
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.
.
addgroup --system, .
GID GID, (FIRST_SYSTEM_GID, LAST_SYSTEM_GID). GID, --gid.
.
, adduser .
--conf /etc/adduser.conf.
--disabled-login
passwd . , .
--disabled-password
--disabled-login, (, SSH RSA), .
--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
. .
--group
--system, ID . --system , . , addgroup.
--help .
--home , . , .
--shell
, .
--ingroup
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
, .
--quiet
, .
--debug
, , 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
uid , uid ( FIRST_UID, ).
--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
.
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. If adduser was returning 0 ,
invoking adduser a second time with the same parameters as
before also returns 0.
1 , UID/GID, . , , adduser.conf(5). adduser
.
, . --quiet, adduser .
/etc/adduser.conf
adduser addgroup
adduser.conf(5), deluser(8), useradd(8), groupadd(8), usermod(8),
Debian Policy 9.2.2.
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, Debian adduser
Copyright (C) 1994 Ian Murdock. adduser ; GNU 2 . .