2013-01-22 14:42:58 +05:30
|
|
|
<!--
|
2021-12-05 21:05:27 +05:30
|
|
|
SPDX-FileCopyrightText: 2013, Eric W. Biederman
|
|
|
|
SPDX-License-Identifier: BSD-3-Clause
|
2013-01-22 14:42:58 +05:30
|
|
|
-->
|
Allow disabling of subordinate IDs.
* configure.in: Add configure options --enable-subordinate-ids /
--disable-subordinate-ids. Enabled by default.
* lib/prototypes.h: Include <config.h> before using its macros.
* lib/commonio.h, lib/commonio.c: Define commonio_append only when
ENABLE_SUBIDS is defined.
* lib/prototypes.h, libmisc/find_new_sub_gids.c,
libmisc/find_new_sub_uids.c: Likewise.
* lib/subordinateio.h, lib/subordinateio.c: Likewise.
* libmisc/user_busy.c: Only check if subordinate IDs are in use if
ENABLE_SUBIDS is defined.
* src/Makefile.am: Create newgidmap and newuidmap only if
ENABLE_SUBIDS is defined.
* src/newusers.c: Check for ENABLE_SUBIDS to enable support for
subordinate IDs.
* src/useradd.c: Likewise.
* src/userdel.c: Likewise.
* src/usermod.c: Likewise.
* man/Makefile.am: Install man1/newgidmap.1, man1/newuidmap.1,
man5/subgid.5, and man5/subuid.5 only if ENABLE_SUBIDS is defined.
* man/fr/Makefile.am: Install man1/newgidmap.1, man1/newuidmap.1,
man5/subgid.5, and man5/subuid.5 (not translated yet).
* man/generate_mans.mak: Add xsltproc conditionals
subids/no_subids.
* man/login.defs.d/SUB_GID_COUNT.xml: Add dependency on subids
condition.
* man/login.defs.d/SUB_UID_COUNT.xml: Likewise.
* man/usermod.8.xml: Document options for subordinate IDs and
reference subgid(5) / subuid(5) depending on the subids condition.
2013-08-11 18:24:22 +05:30
|
|
|
<varlistentry condition="subids">
|
2013-01-22 14:42:58 +05:30
|
|
|
<term><option>SUB_UID_MIN</option> (number)</term>
|
|
|
|
<term><option>SUB_UID_MAX</option> (number)</term>
|
|
|
|
<term><option>SUB_UID_COUNT</option> (number)</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2013-08-13 03:51:02 +05:30
|
|
|
If <filename>/etc/subuid</filename> exists, the commands
|
2013-08-15 20:51:44 +05:30
|
|
|
<command>useradd</command> and <command>newusers</command> (unless
|
|
|
|
the user already have subordinate user IDs) allocate
|
2013-08-13 03:51:02 +05:30
|
|
|
<option>SUB_UID_COUNT</option> unused user IDs from the range
|
2013-01-22 14:42:58 +05:30
|
|
|
<option>SUB_UID_MIN</option> to <option>SUB_UID_MAX</option> for each
|
|
|
|
new user.
|
|
|
|
</para>
|
|
|
|
<para>
|
2013-08-15 20:51:44 +05:30
|
|
|
The default values for <option>SUB_UID_MIN</option>,
|
|
|
|
<option>SUB_UID_MAX</option>, <option>SUB_UID_COUNT</option>
|
2019-01-31 18:00:59 +05:30
|
|
|
are respectively 100000, 600100000 and 65536.
|
2013-01-22 14:42:58 +05:30
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|