Scroll to navigation

ADDUSER.CONF(5) File Formats Manual ADDUSER.CONF(5)

NAME

/etc/adduser.conf - configuration file for adduser(8) and addgroup(8).

DESCRIPTION

The file /etc/adduser.conf contains defaults for the programs adduser(8), addgroup(8), deluser(8) and delgroup(8). Each line holds a single value pair in the form option = value. Double or single quotes are allowed around the value, as is whitespace around the equals sign. Comment lines must have a hash sign (#) in the first column.

The valid configuration options are:

The login shell to be used for all new users. Defaults to /bin/bash.
The directory in which new home directories should be created. Defaults to /home.
If this is set to yes, the home directories will be created as /home/groupname/user. Defaults to no.
If this is set to yes, then the home directories created will have an extra directory inserted which is the first letter of the loginname. For example: /home/u/user. Defaults to no.
The directory from which skeletal user configuration files should be copied. Defaults to /etc/skel.
specify an inclusive range of UIDs from which system UIDs can be dynamically allocated. Default to 100 - 999. Please note that system software, such as the users allocated by the base-passwd package, may assume that UIDs less than 100 are unallocated.
specify an inclusive range of UIDs from which normal user's UIDs can be dynamically allocated. Default to 1000 - 59999.
specify an inclusive range of GIDs from which system GIDs can be dynamically allocated. Default to 100 - 999.
specify an inclusive range of GIDs from which normal group's GIDs can be dynamically allocated. Default to 1000 - 59999.
If this is set to yes, then each created non-system user will be given their own group to use. The default is yes.
USERS_GROUP Defines the group name or GID of the group all newly-created non-system users are placed into. If USERGROUPS is yes, the group will be added as a supplementary group; if USERGROUPS is no,, it will be the primary group. If you don't want all your users to be in one group, set USERGROUPS is yes, leave USERS_GROUP empty and set USERS_GID to "-1". The default value of USERS_GROUP is users, which has GID 100 on all Debian systems since it's defined statically by the base-passwd package.
If set to a valid value (e.g. 0755 or 755), directories created will have the specified permissions mode. Otherwise 2700 is used as default. (See SYS_DIR_MODE for system users.) Note that there are potential configurations (such as /~user web services, or in-home mail delivery) which will require changes to the default.
If set to a valid value (e.g. 0755 or 755), directories created for system users will have the specified permissions mode. Otherwise 0755 is used as default. Note that changing the default permissions for system users may cause some packages to behave unreliably, if the program relies on the default setting.
If this is set to yes, then home directories for users with their own group (USERGROUPS = yes) will have the setgid bit set. This is the default setting for normal user accounts. If you set this to "no", you should also change the value of DIR_MODE, as the default (2700) sets this bit regardless. Note that this feature is deprecated and will be removed in a future version of adduser. Please use DIR_MODE instead.
If set to a nonempty value, new users will have quotas copied from that user. The default is empty.
User and group names are checked against this regular expression. If the name doesn't match this regexp, user and group creation in adduser is refused unless --allow-badname is set. With --allow-badname set, only weak checks are performed. The default is the most conservative ^[a-z][-a-z0-9_]*$. See Valid names, below, for more information.
System user and group names are checked against this regular expression. If this variable is not set, it falls back to the default value. If the name doesn't match this regexp, system user and group creation in adduser is refused unless --allow-badname is set. With --allow-badname set, only weak checks are performed. The default is the most conservative ^[a-z_][-a-z0-9_]*$. See Valid names, below, for more information.
Files in /etc/skel/ are checked against this regex, and not copied to the newly created home directory if they match. This is by default set to the regular expression matching files left over from unmerged config files (dpkg-(old|new|dist)).
Setting this to something other than 0 (the default) will cause adduser to add newly created non-system users to the list of groups defined by EXTRA_GROUPS (below).
This is the space-separated list of groups that new non-system users will be added to.

NOTES

to IEEE Std 1003.1-2001, which allows only the following characters to appear in group and user names: letters, digits, underscores, periods, at signs (@) and dashes. The name may not start with a dash or @. The "$" sign is allowed at the end of usernames (to conform to samba).
allow usernames to contain lowercase letters and numbers, plus dash (-) and underscore (_); the name must begin with a letter (or an underscore for system users).
option, simply makes the same checks as useradd: cannot start with a dash, plus sign, or tilde; and cannot contain a colon, comma, slash, or whitespace.
it with caution.
the username, it may be a maximum of 32 bytes; this may be less than 32 visual characters when using Unicode glyphs in the username.

FILES

/etc/adduser.conf

SEE ALSO

deluser.conf(5), addgroup(8), adduser(8), delgroup(8), deluser(8)

Debian GNU/Linux