Debian Bug report logs - #471705
passwd: deluser weirdness; uninit value

version graph

Package: adduser; Maintainer for adduser is Debian Adduser Developers <adduser@packages.debian.org>; Source for adduser is src:adduser (PTS, buildd, popcon).

Reported by: Justin Pryzby <justinpryzby@users.sourceforge.net>

Date: Wed, 19 Mar 2008 16:21:04 UTC

Severity: important

Merged with 469165, 470847

Found in version adduser/3.106

Fixed in version adduser/3.107

Done: Stephen Gran <sgran@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>:
Bug#471705; Package passwd. (full text, mbox, link).


Acknowledgement sent to Justin Pryzby <justinpryzby@users.sourceforge.net>:
New Bug report received and forwarded. Copy sent to Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Justin Pryzby <justinpryzby@users.sourceforge.net>
To: submit@bugs.debian.org
Subject: passwd: deluser weirdness; uninit value
Date: Wed, 19 Mar 2008 12:20:14 -0400
Package: passwd
Version: 1:4.0.18.1-7
Severity: normal

$ sudo useradd useradd
$ grep useradd /etc/passwd
useradd:x:1004:1007::/home/useradd:/bin/sh
$ sudo deluser useradd
Use of uninitialized value in numeric eq (==) at /usr/sbin/deluser line 228.
WARNING: You are just about to delete the root account (uid 0)
Usually this is never required as it may render the whole system unusable
Press immediately Ctrl+C if you want to abort
Ok, you really want it, I'll delete that account
Removing user `useradd' ...
Warning: group `useradd' has no more members.
Done.
$ grep root /etc/passwd
root:x:0:0:root:/root:/bin/bash

There was no delay for me to ^C (or otherwise the delay wasn't long
enough to read and reread that surprising message).  Presumably the
error message (apparently a false-positive) is due to the
uninitialized value.




Information forwarded to debian-bugs-dist@lists.debian.org, Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>:
Bug#471705; Package passwd. (full text, mbox, link).


Acknowledgement sent to Nicolas François <nicolas.francois@centraliens.net>:
Extra info received and forwarded to list. Copy sent to Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #10 received at 471705@bugs.debian.org (full text, mbox, reply):

From: Nicolas François <nicolas.francois@centraliens.net>
To: Justin Pryzby <justinpryzby@users.sourceforge.net>, 471705@bugs.debian.org
Subject: Re: [Pkg-shadow-devel] Bug#471705: passwd: deluser weirdness; uninit value
Date: Wed, 19 Mar 2008 22:36:43 +0100
forcemerge 469165 471705
thanks

On Wed, Mar 19, 2008 at 12:20:14PM -0400, justinpryzby@users.sourceforge.net wrote:
> 
> $ sudo useradd useradd
> $ grep useradd /etc/passwd
> useradd:x:1004:1007::/home/useradd:/bin/sh
> $ sudo deluser useradd
> Use of uninitialized value in numeric eq (==) at /usr/sbin/deluser line 228.
> WARNING: You are just about to delete the root account (uid 0)
> Usually this is never required as it may render the whole system unusable
> Press immediately Ctrl+C if you want to abort
> Ok, you really want it, I'll delete that account

The problem is in deluser, not userdel.

It looks like #469165, which has a patch and should be fixed in the next
adduser release.

Best Regards,
-- 
Nekral




Bug reassigned from package `passwd' to `adduser'. Request was from Nicolas François <nicolas.francois@centraliens.net> to control@bugs.debian.org. (Thu, 20 Mar 2008 12:24:21 GMT) (full text, mbox, link).


Forcibly Merged 469165 470847 471705. Request was from Nicolas François <nicolas.francois@centraliens.net> to control@bugs.debian.org. (Thu, 20 Mar 2008 12:24:24 GMT) (full text, mbox, link).


Reply sent to Stephen Gran <sgran@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Justin Pryzby <justinpryzby@users.sourceforge.net>:
Bug acknowledged by developer. (full text, mbox, link).


Message #19 received at 471705-close@bugs.debian.org (full text, mbox, reply):

From: Stephen Gran <sgran@debian.org>
To: 471705-close@bugs.debian.org
Subject: Bug#471705: fixed in adduser 3.107
Date: Thu, 27 Mar 2008 21:17:03 +0000
Source: adduser
Source-Version: 3.107

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:

adduser_3.107.dsc
  to pool/main/a/adduser/adduser_3.107.dsc
adduser_3.107.tar.gz
  to pool/main/a/adduser/adduser_3.107.tar.gz
adduser_3.107_all.deb
  to pool/main/a/adduser/adduser_3.107_all.deb



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 471705@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stephen Gran <sgran@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@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 27 Mar 2008 20:43:30 +0000
Source: adduser
Binary: adduser
Architecture: source all
Version: 3.107
Distribution: unstable
Urgency: low
Maintainer: Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>
Changed-By: Stephen Gran <sgran@debian.org>
Description: 
 adduser    - add and remove users and groups
Closes: 469165 470464 470847 471705 471903 472349
Changes: 
 adduser (3.107) unstable; urgency=low
 .
   [ Joerg Hoh ]
   * deluser: fix really annoying message about removing root account when removing
     just a simple user. (Closes: #469165, #470464, #470847, #471705, #472349)
 .
   [ Stephen Gran ]
   * Translations:
     - eu (thanks Piarres Beobide <pi@beobide.net>)(closes: #471903)
Files: 
 0dd290f4b8f57d3d61413596163adf01 835 admin important adduser_3.107.dsc
 85f472ae5cedaea852c487ce7f6bd1e3 264145 admin important adduser_3.107.tar.gz
 f5bf39bfa88f28632bb193990976314f 172946 admin important adduser_3.107_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH7AdrSYIMHOpZA44RAhXvAJ963469wSRtHT2vJjA5ly6CcnYikgCeP3zw
BDly+ZSSNl1pi52FpyHk3Bk=
=b/dk
-----END PGP SIGNATURE-----





Reply sent to Stephen Gran <sgran@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Bram Senders <bram@luon.net>:
Bug acknowledged by developer. (full text, mbox, link).


Reply sent to Stephen Gran <sgran@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to William Lynch <wlynch@UDel.Edu>:
Bug acknowledged by developer. (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 06 May 2008 07:29:49 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 21:03:00 2023; Machine Name: buxtehude

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.