Your message dated Tue, 04 Mar 2025 20:41:39 +0000
with message-id <e1tpz59-003lp7...@fasolo.debian.org>
and subject line Bug#1099477: fixed in adduser 3.144
has caused the Debian Bug report #1099477,
regarding adduser: fails upgrade of packages with non-locked system accounts
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1099477: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099477
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: adduser
Version: 3.143
Severity: critical
Justification: breaks unrelated software
## Add a new system user
# adduser --system --group --home /var/lib/testuser testuser
# echo $?
0
# id testuser
uid=127(testuser) gid=138(testuser) groups=138(testuser)
## Re-Add the new system user
# adduser --system --group --home /var/lib/testuser testuser
warn: The home dir /var/lib/testuser you specified already exists.
fatal: The system user `testuser' already exists. Exiting.
## Which seems to work fine
# echo $?
0
## Change it from locked to no password
# sed -i 's/^testuser:\!:/testuser:\*:/g' /etc/shadow
## Re-Add the new system user
# adduser --system --group --home /var/lib/testuser testuser
warn: The home dir /var/lib/testuser you specified already exists.
fatal: The system user `testuser' already exists. Exiting.
## Fails unexpected
# echo $?
13
It looks like the check added in ee5cee1f32cc to addsysuser seems to be
problematic:
https://salsa.debian.org/debian/adduser/-/commit/ee5cee1f32ccaaf97c921c772fcc61dff0e4f053#fcb13654c5c3048ef5c4919c3aaf065a8c22cec6_562_568
> my $ret = existing_user_status($new_name, $new_uid);
> if ($ret == (EXISTING_FOUND|EXISTING_SYSTEM)) {
> # a user with this name already exists; it's a problem when it's not a
> system user
> log_fatal( mtx("The user `%s' already exists, but is not a system user.
> Exiting."), $new_name );
> exit( RET_WRONG_OBJECT_PROPERTIES );
> }
This should be true if EXISTING_FOUND bit is set BUT EXISTING_SYSTEM is NOT set.
With setting password to locked, it works, because existing_user_status sets
the EXISTING_LOCKED bit too to $ret, which means this condition is not true
anymore.
hth, br m
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (504, 'unstable'), (503, 'testing'), (502, 'experimental'), (500,
'unstable-debug'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.17-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages adduser depends on:
ii passwd 1:4.17.3-1
adduser recommends no packages.
Versions of packages adduser suggests:
ii cron 3.0pl1-194
ii liblocale-gettext-perl 1.07-7+b1
ii perl 5.40.1-2
pn quota <none>
-- debconf information:
adduser/title:
adduser/homedir-permission: true
--- End Message ---
--- Begin Message ---
Source: adduser
Source-Version: 3.144
Done: Marc Haber <mh+debian-packa...@zugschlus.de>
We believe that the bug you reported is fixed in the latest version of
adduser, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1099...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Marc Haber <mh+debian-packa...@zugschlus.de> (supplier of updated adduser
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Tue, 04 Mar 2025 20:57:13 +0100
Source: adduser
Architecture: source
Version: 3.144
Distribution: unstable
Urgency: medium
Maintainer: Debian Adduser Developers <addu...@packages.debian.org>
Changed-By: Marc Haber <mh+debian-packa...@zugschlus.de>
Closes: 1099470 1099477
Changes:
adduser (3.144) unstable; urgency=medium
.
[ Matt Barry ]
* Clean up system account logic.
Thanks to Michael Musenbrock and Vincent Lefevre
(Closes: #1099470, #1099477)
Checksums-Sha1:
4fd2571310c15f8a9b197fe8faaa1b7f0dde8e24 1678 adduser_3.144.dsc
fb1574ef84484aba6cf0137ff8e40c9a52a37662 315072 adduser_3.144.tar.xz
b53c6c0958b031bb60f6dd2cd58cf7ce82530402 5861 adduser_3.144_source.buildinfo
Checksums-Sha256:
3a039f16673602e1837f8d778c3e6d76f49d3387215bac3a0ad5cffd24a2b988 1678
adduser_3.144.dsc
5c9be1cbe9973c40c44c7c8d24e78c5a5ed65f26e81f49695b24e33ab0b13d2f 315072
adduser_3.144.tar.xz
d7418a04b35f384481008a9da401307a7458f271f3ee2f176ea627c23ccb3772 5861
adduser_3.144_source.buildinfo
Files:
d142f723c7f0db5505c97bc7cfd002dd 1678 admin important adduser_3.144.dsc
65d2c1b7361b3b682b65c8f36b41a5a9 315072 admin important adduser_3.144.tar.xz
841b3e672794b74f2215c5f4ee188109 5861 admin important
adduser_3.144_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEE6QL5UJ/L0pcuNEbjj3cgEwEyBEIFAmfHXnUACgkQj3cgEwEy
BELLDw//SYLjfIsq87XmvagXbvg9ECr68NUcXAEDM0ByGTXvcWoS+zuGSJaVs5up
k46b1raCDx0szrMqAUQW7DBXkfNWJp3IwUhMdIQohuxzKkMLoNB12aq4ltTGtn7v
taMV/pHfl336LSUs7WEUXnKW6MNvCfUdMtCbo4XkmrrA56k5zEtRUSRFhCEiQkQS
fzX+SqLFnCxrZ1pj1h5PoKYjSuEle4lB6ytO/+S+C7hRIgO/XJn8czy1gu8l2Xoq
QtyAIlqHFzTq3CQO/bcEJmgmC4WMdaWDnp7RDVlgkTdgZDyaRNrU4Oz9ca1ZABj1
ARvBI7xt5m/kI7RGuFleHcDArwU3xpZ2VuSrb0GHqnT+2rujKR8tV+FH5ZAQ0mS/
pCNnSQcm4ANTN5Jm0qCKWyknSMmKNW0v8iyhT925Ee+ek3F+eBExRVveHcXAigj1
h85kC6Z49WdQZvqC6Dwd/fLvTGiQTrg1g7bVzWwMsVZiUgRDa+3u9l0ebRcSBZed
ynjvcbWOQZtqdWwJQGbJxPRcP58hYcVxm81TAcbJol7zs3Hvv82gDAYg4OqdAwDR
rZywDAV/L5rFW20RBmviLVDi1iCOehEGNj9oZfHXqg4dMzuTuUki7i4EMyh1p1YZ
hmTErp/oQxcgtkvdKWwiUYaFkF8r3uVG9QuniJQBvlRSPsjnTok=
=UnLs
-----END PGP SIGNATURE-----
pgpQWkH5mlVFL.pgp
Description: PGP signature
--- End Message ---