#959735 Ship a default range for systemd-sysusers which follows adduser defaults

Package:
systemd
Source:
systemd
Description:
system and service manager
Submitter:
Moritz Muehlenhoff
Date:
2021-03-16 16:03:06 UTC
Severity:
wishlist
#959735#5
Date:
2020-05-04 17:53:26 UTC
From:
To:
The default config in adduser configures

FIRST_SYSTEM_UID=100
LAST_SYSTEM_UID=999
FIRST_SYSTEM_GID=100
LAST_SYSTEM_GID=999

I'm wondering if systemd by default should ship

r     -        100-999

somewhere in /usr/lib/sysusers.d to mimic that default as well. (The upper
bound is already implicitly defined as a compile-time default by means
of passing -DSystemd-[ug]id-max=999 in debian/rules)

Cheers,
        Moritz

#959735#10
Date:
2021-03-16 15:58:09 UTC
From:
To:
Hi Moritz
upper
means


So, the current builtin defaults are

['system-alloc-uid-min', 'SYS_UID_MIN', 1],
['system-uid-max',       'SYS_UID_MAX', 999],
['system-alloc-gid-min', 'SYS_GID_MIN', 1],
['system-gid-max',       'SYS_GID_MAX', 999]]

They can be set via:

option('system-alloc-uid-min', type : 'integer', value : '-1',
       description : 'minimum system UID used when allocating')
option('system-alloc-gid-min', type : 'integer', value : '-1',
       description : 'minimum system GID used when allocating')
option('system-uid-max', type : 'integer', value : '-1',
       description : 'maximum system UID')
option('system-gid-max', type : 'integer', value : '-1',
       description : 'maximum system GID')

The upper bound is already 999, so wouldn't need to be changed.
The lower bound could be changed via