Article View: linux.debian.bugs.rc
Article #4394Bug#1155626: adduser: 3.160 marks the whole system ID range as used after --ingroup takes GID 999 as UID
From: Kentaro HAYASHI
Date: Sat, 28 Nov 2026 08:00
Date: Sat, 28 Nov 2026 08:00
88 lines
4799 bytes
4799 bytes
Package: adduser
Version: 3.160
Severity: serious
Justification: makes unrelated packages unable to install (regression
from 3.159)
Dear Maintainer,
* What led up to the situation?
Since adduser 3.160 (uploaded 2026-11-27), installing a GNOME desktop
on the daily Debian sid nocloud image fails:
apt-get install -y gdm3 task-japanese-gnome-desktop gnome-terminal yad
Setting up sane-utils (1.4.0-1.1) ...
Adding saned group and user...
warn: All ids up to 999 have already been assigned and REUSE_IDS is
set to no. warn: No UID/GID pair is available in the range 1000-999
(FIRST_SYS_UID - LAST_SYS_UID). fatal: The user `saned' was not
created. usermod: user 'saned' does not exist
dpkg: error processing package sane-utils (--configure):
installed sane-utils package postinst maintainer script subprocess
failed with exit status 6 ...
Errors were encountered while processing:
avahi-daemon
ipp-usb
libapache2-mod-dnssd
usbmuxd
gnome-user-share
sane-utils
The system ID range 100-999 still has many free IDs, but adduser says
that it is full. After cups-pk-helper is configured, every later
`adduser --system` and `addgroup --system` call fails, so packages
that have nothing to do with cups-pk-helper cannot be installed:
- avahi-daemon and usbmuxd fail in their postinst, because adduser
exits with status 22.
- ipp-usb, libapache2-mod-dnssd and gnome-user-share then fail with
"dependency problems - leaving unconfigured", because they depend
on avahi-daemon.
- sane-utils ignores the adduser error with `|| true`, but the next
`usermod -d /var/lib/saned saned` fails, because the user does not
exist.
The cause:
- systemd-sysusers creates lpadmin with GID 999 (LAST_SYSTEM_GID),
because it gives out IDs from 999 down.
- cups-pk-helper's postinst runs
`adduser --system ... --ingroup lpadmin cups-pk-helper`.
adduser 3.160 uses the GID 999 as the UID, and also writes
`@global:last_sys_id=999` to /var/lib/adduser/state.
- With REUSE_IDS=no (the default), the next ID to look for is 1000,
which is above LAST_SYSTEM_UID/GID. So every later system user or
group fails.
Without systemd, lpadmin gets GID 101 and this does not happen.
* What exactly did you do (or not do) that was effective (or
ineffective)?
On a fresh sid chroot with adduser 3.160:
groupadd -g 999 lpadmin
adduser --system --ingroup lpadmin cpk
adduser --system test
* What was the outcome of this action?
warn: All ids up to 999 have already been assigned and REUSE_IDS is
set to no. warn: No UID is available in the range 1000-999
(FIRST_SYS_UID - LAST_SYS_UID). fatal: The user `test' was not
created.
With adduser 3.159, the same steps create test with UID 100.
REUSE_IDS=yes in /etc/adduser.conf works as a workaround.
* What outcome did you expect instead?
I expected the same result as 3.159: cups-pk-helper gets UID 999,
and later `adduser --system` calls still get free IDs from the
system range, so avahi-daemon, usbmuxd, sane-utils
and the packages that depend on them install without errors.
Best regards,
Technical Details
Message-ID:
<O4lvH-eDnj-5@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Kentaro HAYASHI <kenhys@xdump.org> Newsgroups: linux.debian.bugs.rc Subject: Bug#1155626: adduser: 3.160 marks the whole system ID range as used after --ingroup takes GID 999 as UID Date: Sat, 28 Nov 2026 09:00:01 +0100 Message-ID: <O4lvH-eDnj-5@gated-at.bofh.it> X-Original-To: submit@bugs.debian.org X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Sat Nov 28 07:51:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Kentaro HAYASHI <kenhys@xdump.org>, 1155626@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: adduser@packages.debian.org X-Debian-Pr-Message: report 1155626 X-Debian-Pr-Package: adduser X-Debian-Pr-Source: adduser Organization: XDUMP.ORG X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Status: clean X-Anti-Virus-Server: fsav112.rs.sakura.ne.jp X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/839895 List-ID: <debian-bugs-rc.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-rc/> Approved: robomod@news.nic.it Lines: 88 Sender: robomod@news.nic.it X-Original-Date: Sat, 28 Nov 2026 16:49:32 +0900 X-Original-Message-ID: <20261128164932.143ac042@jet>