[PATCH] bug #10981: adduser -D behavior

Eli Schwartz eschwartz at archlinux.org
Wed Feb 12 12:16:08 UTC 2020


On 2/12/20 6:07 AM, Didier Kryn wrote:
>     FYI, there has been for decades an adduser in Debian which is higher
> level than useradd in the sense that it is  a helper for admin. It
> enforces local policy and can be used to change it: minimum userid,
> default group, etc.
Strange.

Local policy via useradd is configured in /etc/login.defs

If USERGROUPS_ENAB is defined as "yes", useradd will by default create a
new group for each user, and add them to the group, and if it is defined
as "no", then the GROUP setting in /etc/default/useradd (falling back to
100 by default) will be used as the GID which will be the newly created
user's primary group.

The minimum and maximum UID/GID pool is defined via this conf block:

#
# Min/max values for automatic uid selection in useradd
#
UID_MIN                  1000
UID_MAX                 60000
# System accounts
SYS_UID_MIN               500
SYS_UID_MAX               999

#
# Min/max values for automatic gid selection in groupadd
#
GID_MIN                  1000
GID_MAX                 60000
# System accounts
SYS_GID_MIN               500
SYS_GID_MAX               999

...

I'm not sure what additional utility "adduser" would bring, given this
is all already configurable.

-- 
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1601 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20200212/f2ac6af4/attachment.asc>


More information about the busybox mailing list