Debian Bug report logs -
#708073
Recreating a system user fails when its UID is out of range
Reported by: Alexander Muthmann <deveth0mail@gmail.com>
Date: Mon, 29 Apr 2013 12:45:07 UTC
Severity: minor
Fixed in version adduser/3.116
Done: Afif Elghraoui <afif@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Eduard Bloch <blade@debian.org>:
Bug#706382; Package apt-cacher-ng.
(Mon, 29 Apr 2013 12:45:11 GMT) (full text, mbox, link).
Acknowledgement sent
to Alexander Muthmann <deveth0mail@gmail.com>:
New Bug report received and forwarded. Copy sent to Eduard Bloch <blade@debian.org>.
(Mon, 29 Apr 2013 12:45:11 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: apt-cacher-ng
Version: 0.7.11-1
Severity: normal
Dear Maintainer,
if i try to upgrade apt-cacher-ng it failes with the following message:
root@internal-services:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up apt-cacher-ng (0.7.11-1) ...
adduser: The user `apt-cacher-ng' already exists. Exiting.
dpkg: error processing apt-cacher-ng (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
apt-cacher-ng
E: Sub-process /usr/bin/dpkg returned an error code (1)
-- Package-specific info:
-- System Information:
Debian Release: 7.0
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt-cacher-ng depends on:
ii adduser 3.113+nmu3
ii debconf [debconf-2.0] 1.5.49
ii dpkg 1.16.10
ii libbz2-1.0 1.0.6-4
ii libc6 2.13-38
ii libgcc1 1:4.7.2-5
ii liblzma5 5.1.1alpha+20120614-2
ii libstdc++6 4.7.2-5
ii libwrap0 7.6.q-24
ii zlib1g 1:1.2.7.dfsg-13
Versions of packages apt-cacher-ng recommends:
ii ed 1.6-2
ii perl 5.14.2-21
Versions of packages apt-cacher-ng suggests:
pn doc-base <none>
ii libfuse2 2.9.0-2+deb7u1
-- Configuration Files:
/etc/apt-cacher-ng/acng.conf changed:
CacheDir: /tank/AptCache
LogDir: /var/log/apt-cacher-ng
Port:3142
Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian # Debian Archives
Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu # Ubuntu Archives
Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol # Debian Volatile Archives
Remap-cygwin: file:cygwin_mirrors /cygwin # ; file:backends_cygwin # incomplete, please create this file or specify preferred mirrors here
Remap-sfnet: file:sfnet_mirrors # ; file:backends_sfnet # incomplete, please create this file or specify preferred mirrors here
Remap-alxrep: file:archlx_mirrors /archlinux # ; file:backend_archlx # Arch Linux
Remap-fedora: file:fedora_mirrors # Fedora Linux
Remap-epel: file:epel_mirrors # Fedora EPEL
Remap-slrep: file:sl_mirrors # Scientific Linux
ReportPage: acng-report.html
ExTreshold: 4
/etc/apt-cacher-ng/backends_debian changed:
http://ftp.de.debian.org/debian/
-- debconf information:
apt-cacher-ng/gentargetmode: No automated setup
Information forwarded
to debian-bugs-dist@lists.debian.org, Eduard Bloch <blade@debian.org>:
Bug#706382; Package apt-cacher-ng.
(Mon, 29 Apr 2013 21:15:12 GMT) (full text, mbox, link).
Acknowledgement sent
to Eduard Bloch <edi@gmx.de>:
Extra info received and forwarded to list. Copy sent to Eduard Bloch <blade@debian.org>.
(Mon, 29 Apr 2013 21:15:12 GMT) (full text, mbox, link).
Message #10 received at 706382@bugs.debian.org (full text, mbox, reply):
Hallo,
* Alexander Muthmann [Mon, Apr 29 2013, 02:43:21PM]:
> Setting up apt-cacher-ng (0.7.11-1) ...
> adduser: The user `apt-cacher-ng' already exists. Exiting.
> dpkg: error processing apt-cacher-ng (--configure):
> subprocess installed post-installation script returned error exit status 1
> Errors were encountered while processing:
> apt-cacher-ng
> E: Sub-process /usr/bin/dpkg returned an error code (1)
This does not make sense, the adduser call has not been changed for
ages. Please run in a root console:
adduser --quiet --system --group --no-create-home --home /var/cache/apt-cacher-ng apt-cacher-ng
echo $?
which adduser
and post the output of the commands above.
Regards,
Eduard.
--
<jbf> z und y sind am falschen platy
Information forwarded
to debian-bugs-dist@lists.debian.org, Eduard Bloch <blade@debian.org>:
Bug#706382; Package apt-cacher-ng.
(Thu, 02 May 2013 09:12:12 GMT) (full text, mbox, link).
Acknowledgement sent
to amuthmann@dev-eth0.de:
Extra info received and forwarded to list. Copy sent to Eduard Bloch <blade@debian.org>.
(Thu, 02 May 2013 09:12:12 GMT) (full text, mbox, link).
Message #15 received at 706382@bugs.debian.org (full text, mbox, reply):
Hi Eduard,
thanks for your reply.
The output produced is:
root@internal-services:~# adduser --quiet --system --group
--no-create-home --home /var/cache/apt-cacher-ng apt-cacher-ng
adduser: The user `apt-cacher-ng' already exists. Exiting.
root@internal-services:~# echo $?
1
root@internal-services:~# which adduser
/usr/sbin/adduser
Hope this helps?
Information forwarded
to debian-bugs-dist@lists.debian.org, Eduard Bloch <blade@debian.org>:
Bug#706382; Package apt-cacher-ng.
(Sun, 05 May 2013 10:03:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Eduard Bloch <edi@gmx.de>:
Extra info received and forwarded to list. Copy sent to Eduard Bloch <blade@debian.org>.
(Sun, 05 May 2013 10:03:04 GMT) (full text, mbox, link).
Message #20 received at 706382@bugs.debian.org (full text, mbox, reply):
Hallo,
* Alexander Muthmann [Thu, May 02 2013, 11:10:16AM]:
> Hi Eduard,
>
> thanks for your reply.
>
> The output produced is:
> root@internal-services:~# adduser --quiet --system --group
> --no-create-home --home /var/cache/apt-cacher-ng apt-cacher-ng
> adduser: The user `apt-cacher-ng' already exists. Exiting.
> root@internal-services:~# echo $?
> 1
> root@internal-services:~# which adduser
> /usr/sbin/adduser
>
> Hope this helps?
Maybe, after checking up with adduser developers, there is a theory.
Do you remember when the package has been installed initially?
Could you show the user information for this account, i.e. run:
getent passwd apt-cacher-ng
Or just check the UID, if the UID is outside of the reserved range
(100-999) then something went wrong before. You could try to change the
UIDs or simply delete this account (man deluser) and then recreate it as
system-user with the command mentioned before. And afterwards, you
would need to adapt the permissions of the files to the new UID which
the "new" account got assigned afterwards (i.e. like: chown -R NEWUID
/var/cache/apt-cacher-ng /etc/apt-cacher-ng /var/log/apt-cacher-ng ).
Regards,
Eduard.
Information forwarded
to debian-bugs-dist@lists.debian.org, Eduard Bloch <blade@debian.org>:
Bug#706382; Package apt-cacher-ng.
(Fri, 10 May 2013 08:39:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Alexander Muthmann <amuthmann@dev-eth0.de>:
Extra info received and forwarded to list. Copy sent to Eduard Bloch <blade@debian.org>.
(Fri, 10 May 2013 08:39:05 GMT) (full text, mbox, link).
Message #25 received at 706382@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
sry, i just send the reply to eduard, not the bugs list, therefore here
again:
Ahh great, that seems to be the problem.
The user has the User-ID 25001 as I use an nfs share for the Cache and had
to move the user to this UID.
Is there a change to get apt-cacher-ng running and updating with this UID
or do I have to modify my whole NFS setup?
i just deleted the apt-cacher-ng user and recreated it with a lower UID,
afterwards the upgrade worked fine. Thank you for your help!
On Sun, May 5, 2013 at 11:59 AM, Eduard Bloch <edi@gmx.de> wrote:
> Hallo,
> * Alexander Muthmann [Thu, May 02 2013, 11:10:16AM]:
> > Hi Eduard,
> >
> > thanks for your reply.
> >
> > The output produced is:
> > root@internal-services:~# adduser --quiet --system --group
> > --no-create-home --home /var/cache/apt-cacher-ng apt-cacher-ng
> > adduser: The user `apt-cacher-ng' already exists. Exiting.
> > root@internal-services:~# echo $?
> > 1
> > root@internal-services:~# which adduser
> > /usr/sbin/adduser
> >
> > Hope this helps?
>
> Maybe, after checking up with adduser developers, there is a theory.
>
> Do you remember when the package has been installed initially?
> Could you show the user information for this account, i.e. run:
>
> getent passwd apt-cacher-ng
>
> Or just check the UID, if the UID is outside of the reserved range
> (100-999) then something went wrong before. You could try to change the
> UIDs or simply delete this account (man deluser) and then recreate it as
> system-user with the command mentioned before. And afterwards, you
> would need to adapt the permissions of the files to the new UID which
> the "new" account got assigned afterwards (i.e. like: chown -R NEWUID
> /var/cache/apt-cacher-ng /etc/apt-cacher-ng /var/log/apt-cacher-ng ).
>
> Regards,
> Eduard.
>
>
[Message part 2 (text/html, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Eduard Bloch <blade@debian.org>:
Bug#706382; Package apt-cacher-ng.
(Sun, 12 May 2013 22:15:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Eduard Bloch <edi@gmx.de>:
Extra info received and forwarded to list. Copy sent to Eduard Bloch <blade@debian.org>.
(Sun, 12 May 2013 22:15:04 GMT) (full text, mbox, link).
Message #30 received at 706382@bugs.debian.org (full text, mbox, reply):
clone 706382 -1
retitle -1 Recreating a system user fails when its UID is out of range
reassign -1 adduser
severity -1 minor
thanks
As discussed, the error handling in this case needs some improvement. As
least there should be a meaningful error message telling where the
error originated.
And/or it maybe should not be an error whatsoever, i.e. when the account
exists then there is no need to recreate it.
Regards,
Eduard.
Bug 706382 cloned as bug 708073
Request was from Eduard Bloch <edi@gmx.de>
to control@bugs.debian.org.
(Sun, 12 May 2013 22:15:10 GMT) (full text, mbox, link).
Changed Bug title to 'Recreating a system user fails when its UID is out of range' from 'apt-cacher-ng: Upgrade of apt-cacher-ng failes'
Request was from Eduard Bloch <edi@gmx.de>
to control@bugs.debian.org.
(Sun, 12 May 2013 22:15:11 GMT) (full text, mbox, link).
Bug reassigned from package 'apt-cacher-ng' to 'adduser'.
Request was from Eduard Bloch <edi@gmx.de>
to control@bugs.debian.org.
(Sun, 12 May 2013 22:15:12 GMT) (full text, mbox, link).
No longer marked as found in versions apt-cacher-ng/0.7.11-1.
Request was from Eduard Bloch <edi@gmx.de>
to control@bugs.debian.org.
(Sun, 12 May 2013 22:15:13 GMT) (full text, mbox, link).
Severity set to 'minor' from 'normal'
Request was from Eduard Bloch <edi@gmx.de>
to control@bugs.debian.org.
(Sun, 12 May 2013 22:15:13 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>:
Bug#708073; Package adduser.
(Sat, 26 Nov 2016 10:24:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Afif Elghraoui <afif@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>.
(Sat, 26 Nov 2016 10:24:05 GMT) (full text, mbox, link).
Message #45 received at 708073@bugs.debian.org (full text, mbox, reply):
Hello,
On Mon, 13 May 2013 00:12:45 +0200 Eduard Bloch <edi@gmx.de> wrote:
> clone 706382 -1
> retitle -1 Recreating a system user fails when its UID is out of range
> reassign -1 adduser
> severity -1 minor
> thanks
>
> As discussed, the error handling in this case needs some improvement. As
> least there should be a meaningful error message telling where the
> error originated.
>
> And/or it maybe should not be an error whatsoever, i.e. when the account
> exists then there is no need to recreate it.
>
What happened in this case was that adduser was asked to add a system
user while the name is already taken by a *regular* user (maybe that is
the key word missing from the printed message), as determined by the
system UID range.
The system user range can be changed by the administrator in
/etc/adduser.conf if they want to use a different range to determine
what a system user is.
I'd appreciate any suggestions to make this more clear so this confusion
can be avoided in the future.
Thanks and regards
Afif
--
Afif Elghraoui | عفيف الغراوي
http://afif.ghraoui.name
Message sent on
to Alexander Muthmann <deveth0mail@gmail.com>:
Bug#708073.
(Sat, 12 Aug 2017 20:18:02 GMT) (full text, mbox, link).
Message #48 received at 708073-submitter@bugs.debian.org (full text, mbox, reply):
Control: tag 708073 pending
Bug #708073 in package adduser reported by you has been fixed in
the adduser/adduser.git Git repository. You can see the changelog below, and
you can check the diff of the fix at:
https://anonscm.debian.org/cgit/adduser/adduser.git/commit/?id=6400c67
---
commit 6400c67d621affb74d12079261e02e8d764b4775
Author: Afif Elghraoui <afif@debian.org>
Date: Sat Aug 12 12:42:52 2017 -0400
Update changelog
diff --git a/debian/changelog b/debian/changelog
index d72119d..924c1c6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,15 @@
+adduser (3.116) UNRELEASED; urgency=medium
+
+ * Advise installation of 'perl' rather than 'perl-modules'
+ (Closes: #840982)
+ * Improve distinction between informational and essential messages
+ (Closes: #763055)
+ * Improve message accompanying error code for creating system user
+ (Closes: #708073, #759740)
+ * testsuite: add current directory to module search path
+
+ -- Afif Elghraoui <afif@debian.org> Sat, 12 Aug 2017 11:44:19 -0400
+
adduser (3.115) unstable; urgency=medium
[ Afif Elghraoui ]
Added tag(s) pending.
Request was from Afif Elghraoui <afif@debian.org>
to 708073-submitter@bugs.debian.org.
(Sat, 12 Aug 2017 20:18:03 GMT) (full text, mbox, link).
Reply sent
to Afif Elghraoui <afif@debian.org>:
You have taken responsibility.
(Sat, 12 Aug 2017 20:51:11 GMT) (full text, mbox, link).
Notification sent
to Alexander Muthmann <deveth0mail@gmail.com>:
Bug acknowledged by developer.
(Sat, 12 Aug 2017 20:51:11 GMT) (full text, mbox, link).
Message #55 received at 708073-close@bugs.debian.org (full text, mbox, reply):
Source: adduser
Source-Version: 3.116
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 708073@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Afif Elghraoui <afif@debian.org> (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 ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sat, 12 Aug 2017 16:05:34 -0400
Source: adduser
Binary: adduser
Architecture: source
Version: 3.116
Distribution: unstable
Urgency: medium
Maintainer: Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>
Changed-By: Afif Elghraoui <afif@debian.org>
Description:
adduser - add and remove users and groups
Closes: 708073 759740 763055 840982 845791
Changes:
adduser (3.116) unstable; urgency=medium
.
* Advise installation of 'perl' rather than 'perl-modules'
(Closes: #840982)
* Improve distinction between informational and essential messages
(Closes: #763055)
* Improve message accompanying error code for creating system user
(Closes: #708073, #759740)
* testsuite: add current directory to Perl module search path
* Use /usr/sbin/nologin instead of /bin/false for default system shell
(Closes: #845791)
* Bump Standards-Version to 4.0.1
Checksums-Sha1:
649f82bad2d5234d899c126a19bb66bc7867a8f0 1740 adduser_3.116.dsc
8cd86a573f8e9ede3cee2fd14a35287bf300eb68 212012 adduser_3.116.tar.xz
30e561dae6a99add7c6d925b28129905493f7577 5767 adduser_3.116_source.buildinfo
Checksums-Sha256:
50e4154d3101101a890864185a09478c182155dc13f73dbb465c4279213bfafa 1740 adduser_3.116.dsc
72d811ad3ba17d2794b14d19acd1d6b57f9dd31d9250d51e786895dee2daeac0 212012 adduser_3.116.tar.xz
a2c50a451d87ebac2e8007f55d7850afc581c2ce9d0a09d544a59a42132adabf 5767 adduser_3.116_source.buildinfo
Files:
66a17b27890067707dbf9580814c7918 1740 admin important adduser_3.116.dsc
e042a5842b8f24312d6f5a99a1af8f2c 212012 admin important adduser_3.116.tar.xz
fee33cdea505963c2bbe2b6cbedd0e5b 5767 admin important adduser_3.116_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJEBAEBCAAuFiEE6rcjomb2J+aAVWFfWbIwbzr53cEFAlmPYVMQHGFmaWZAZGVi
aWFuLm9yZwAKCRBZsjBvOvndwUd7D/4387QEKKi7MKVZqxiIEJnzGsE4OV7f5vZr
U1FQV2tQruYyMYOFg1Q2b4Dr639hSa0AJhw2Mr7Nb/zzxN7amIlJWcowM2fUWxKz
ulMLsizC5yISUE0AKqbIzHPHl55yJMjDLS89iPE1OO9Axdbss8wr2VZC4pVTejgW
+BIcZyHH0um+4cj2PTjFjVH7TpwsRY2kl+SW7tyxolaDdnVNY4YX37Jr4SOo3NcJ
ld5BNpCxjjqFl2T0AzZNv3kMrqs3/MvULP5aHt91mjdRAf59V2+HPg/jMm9UeEkJ
B4JguAbFibKnB8WdBkMzSNXUSUNla09p4dfEYFNPUcZYrUfC/MAwTzcf/rt6DxbQ
E6IRnhiw/KAEh4kK6DYpXBawwLokysfFA3yfGTH3tf7Ii5/9g6Ajwefswwt+pWqP
d10uh9TEY5QgLlDsC4dlgPFnD3UrmUGTdflAIx5DjsjDcrxVrwKDbiiork/LjcfE
pqiojmHJhyjbBUSmT+APp8QCPY7BC/is+mPQBYUH8coUEwPRhQ/cpVAKlS5yuuj6
xm95bp+I9CSoGZuBjBtlY7zFDndLy6FSY6Dfkr/w91avmDyOHsMF0RnaHSBlD5Q8
VbU/euaQlWdj1teShZRHwqx5K7h2V0k9WMW/UWZNKZFKK3Fj9nTj/zxYwzRZGySx
XhfTxIps3A==
=jUjJ
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 15 Sep 2017 07:29:18 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Jul 1 20:51:21 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.