Package: adduser Version: 3.152 Severity: wishlist Hello!
When packaging the Isolate sandbox (outside the official Debian archive), I need to create a user with subuid and subgid range in the postinst script. By Debian policy, such users should be created by "adduser --system". However, in the system mode, adduser does not assign sub[ug]ids. More specifically, it calls "useradd -r", which does not assign sub[ug]ids unless "-F" is given. Creating the user and then using usermod to assign the subid ranges does not work either, since usermod has to be given an explicit range of sub[ug]ids and I am aware of no tool that can allocate a free range (useradd and newusers do that internally). Perhaps adduser could gain an option to request allocation of subuids even in system mode. -- System Information: Debian Release: 13.4 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.12.73+deb13-amd64 (SMP w/16 CPU threads; PREEMPT) Locale: LANG=C, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8), LANGUAGE=en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages adduser depends on: ii passwd 1:4.17.4-2 adduser recommends no packages. Versions of packages adduser suggests: ii cron 3.0pl1-197 ii liblocale-gettext-perl 1.07-7+b1 ii perl 5.40.1-6 pn quota <none> -- Configuration Files: /etc/adduser.conf changed [not included] -- debconf information excluded

