Allow supplementary groups to be added via config file

Allow supplementary groups to be set via the /etc/default/useradd config
file. Allowing an administrator to set additonal groups via the GROUPS
configurable and control the default behaviour of useradd.
This commit is contained in:
Andy Zaugg
2022-10-18 16:30:14 -07:00
committed by Serge Hallyn
parent e0524e813a
commit e8d2bc8d8b
7 changed files with 185 additions and 1 deletions

View File

@ -263,7 +263,9 @@
intervening whitespace. The groups are subject to the same
restrictions as the group given with the <option>-g</option>
option. The default is for the user to belong only to the
initial group.
initial group. In addition to passing in the -G flag, you can
add the option <option>GROUPS</option> to the file <filename>/etc/default/useradd</filename>
which in turn will add all users to those supplementary groups.
</para>
</listitem>
</varlistentry>