[Pkg-shadow-devel] Bug#295416: marked as done (userdel should not remove the group which is primary for someone else)

Debian Bug Tracking System owner at bugs.debian.org
Wed Nov 9 22:33:28 UTC 2005


Your message dated Wed, 9 Nov 2005 23:17:16 +0100
with message-id <20051109221716.GA9358 at nekral.homelinux.net>
and subject line userdel now checks if the group being deleted is primary for someone else
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 15 Feb 2005 18:06:20 +0000
>From pevans at zeus.com Tue Feb 15 10:06:20 2005
Return-path: <pevans at zeus.com>
Received: from (mailgate.zeus.co.uk) [212.44.21.70] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1D175Y-0004Fw-00; Tue, 15 Feb 2005 10:06:20 -0800
Received: from gyros-1.zeus.com ([212.44.21.82] helo=cam-gw.zeus.com)
	by mailgate.zeus.co.uk with esmtp (Exim 4.33)
	id 1D173V-000359-Pd
	for submit at bugs.debian.org; Tue, 15 Feb 2005 18:04:13 +0000
Received: from localhost ([127.0.0.1] helo=pallas.cam.zeus.com)
	by cam-gw.zeus.com with asmtp (Exim 3.35 #1 (Debian))
	id 1D175R-0002Bs-00
	for <submit at bugs.debian.org>; Tue, 15 Feb 2005 18:06:13 +0000
Date: Tue, 15 Feb 2005 18:05:47 +0000
From: Paul Evans <pevans at zeus.com>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: adduser: deluser will silently delete a group of the same name
Message-ID: <20050215180547.1dd6671d at pallas.cam.zeus.com>
X-Mailer: Sylpheed-Claws 1.0.1cvs7.1 (GTK+ 2.4.14; i686-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Scanner: exiscan *1D175R-0002Bs-00*MEPU8SS4.36* (Zeus Technology Ltd)
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: adduser
Version: 3.59
Severity: normal


Example:
  # addgroup monkey
  # adduser --ingroup monkey monkey
  # deluser monkey

This example will silently delete the "monkey" group, providing no
output message that it will be doing so. The manpage also gives no
indication that this will happen.

The "monkey" group is deleted even if other users exist for which
"monkey" is their primary group. This behaviour is exhibited for both
normal and --system accounts.

Suggested fixes:

  * Don't delete similarly named group.

or

  * Provide a warning when running deluser; e.g.:

    # deluser monkey
    Removing user `monkey'...
    Warning: Also removing group `monkey'...
    done.
    
    Also document this behaviour in the manpage.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.28-leo
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages adduser depends on:
ii  debconf                     1.4.30.11    Debian configuration management sy 
ii  passwd                      1:4.0.3-30.8 Change and administer password and 
ii  perl-base                   5.8.4-6      The Pathologically Eclectic Rubbis

-- debconf information excluded


---------------------------------------
Received: (at 295416-done) by bugs.debian.org; 9 Nov 2005 22:17:16 +0000
>From nicolas.francois at centraliens.net Wed Nov 09 14:17:16 2005
Return-path: <nicolas.francois at centraliens.net>
Received: from smtp5-g19.free.fr [212.27.42.35] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EZyFo-0004Rh-00; Wed, 09 Nov 2005 14:17:16 -0800
Received: from nekral (gam75-2-82-224-24-210.fbx.proxad.net [82.224.24.210])
	by smtp5-g19.free.fr (Postfix) with ESMTP id C371A96FC
	for <295416-done at bugs.debian.org>; Wed,  9 Nov 2005 23:17:14 +0100 (CET)
Received: from fzt by nekral with local (Exim 4.54)
	id 1EZyFo-0001zP-BL
	for 295416-done at bugs.debian.org; Wed, 09 Nov 2005 23:17:16 +0100
Date: Wed, 9 Nov 2005 23:17:16 +0100
From: Nicolas =?iso-8859-1?Q?Fran=E7ois?= <nicolas.francois at centraliens.net>
To: 295416-done at bugs.debian.org
Subject: userdel now checks if the group being deleted is primary for someone else
Message-ID: <20051109221716.GA9358 at nekral.homelinux.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.11
Delivered-To: 295416-done at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: passwd
Version: 4.0.13-1

The first patch (see the BTS - Oct 2, 2005) was applied upstream in the
4.0.13 tar ball.  The second patch (which changes the userdel return value
in this case) could not be applied.

I'm hence closing this bug.

Kind Regards,
-- 
Nekral



More information about the Pkg-shadow-devel mailing list