Copyright (C) 2000-2012 |
Manpages ADDUSERSection: Maintenance Commands (8)Updated: Version 3.47 Index Return to Main Contents NAMEadduser, addgroup - add a user or group to the systemSYNOPSISadduser [options] [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--firstuid ID] [--lastuid ID] [--ingroup GROUP | --gid ID] [--disabled-password] [--disabled-login] [--gecos GECOS] useradduser --system [options] [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--group | --ingroup GROUP | --gid ID] [--disabled-password] [--disabled-login] [--gecos GECOS] user
adduser --group [options] [--gid ID] group
COMMON OPTIONS[--quiet] [--force-badname] [--help] [--version] [--conf FILE] DESCRIPTIONadduser and addgroup add users and groups to the system according to command line options and configuration information in /etc/adduser.conf. They are friendlier front ends to the useradd and groupadd programs, choosing Debian policy conformant UID and GID values, creating a home directory with skeletal configuration, running a custom script, and other features. adduser and addgroup can be run in one of four modes: Add a normal userIf called with one non-option argument and without the --system or --group options, adduser will add a normal user.adduser will choose the first available UID from the range specified for normal users in the configuration file. The UID can be overridden with the --uid option. The range specified in the configuration file may be overridden with the --firstuid and --lastuid options. By default, each user in Debian GNU/Linux is given a corresponding group with the same name and id. 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' groups can also be overridden from the command line with the --gid or --ingroup options to set the group by id or name, respectively. adduser will create a home directory subject to DHOME, GROUPHOMES, and LETTERHOMES. The home directory can be overridden from the command line with the --home option, and the shell with the --shell option. The home directory's set-group-ID bit is set if USERGROUPS is yes so that any files created in the user's home directory will have the correct group. 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 are still possible for example through SSH RSA keys.
If the file
/usr/local/sbin/adduser.local
exists, it will be executed after the user account has been set
up in order to do any local setup. The arguments passed to
adduser.local
are:
Add a system userIf called with one non-option argument and the --system option, adduser will add a system user. If an user with an uid in the system range (or if the uid is specified, with that) does already exist, adduser will exit silently.adduser will choose the first available UID from the range specified for system users in the configuration file. The UID can be overridden with the --uid option. By default, system users are placed in the nogroup group. To place the new system user in an already existing group, use the --gid or --ingroup options. To place the new system user in a new group with the same ID, use the --group option. A home directory is created by the same rules as for normal users. The new system user will have the shell /bin/false (unless overridden with the --shell option), and have a disabled password. Skeletal configuration files are not copied. Add a system groupIf adduser is called with the --group option, or addgroup is called, a system group will be added.A GID will be chosen from the range specified for system UIDS in the configuration file. The GID can be overridden with the --gid option. The group is created with no users. Add an existing user to an existing groupIf called with two non-option arguments, adduser will add an existing user to an existing group.OPTIONS
FILES/etc/adduser.confSEE ALSOadduser.conf(5), deluser(8), useradd(8), groupadd(8)COPYRIGHTCopyright (C) 1997, 1998, 1999 Guy Maor.Copyright (C) 1995 Ted Hajek, with a great deal borrowed from the original Debian adduser Copyright (C) 1994 Ian Murdock. adduser is free software; see the GNU General Public Licence version 2 or later for copying conditions. There is no warranty.
IndexThis document was created by man2html, using the manual pages. Time: 22:21:48 GMT, April 25, 2024 |