[Adduser-devel] Bug#326192: marked as done (adduser: adding system user with existing group fails)

Debian Bug Tracking System owner at bugs.debian.org
Mon Oct 3 21:03:13 UTC 2005


Your message dated Mon, 3 Oct 2005 22:54:23 +0200
with message-id <20051003205423.GA8905 at torres.l21.ma.zugschlus.de>
and subject line Fixed in upload of adduser 3.70 to experimental
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; 2 Sep 2005 09:50:43 +0000
>From peter_e at gmx.net Fri Sep 02 02:50:43 2005
Return-path: <peter_e at gmx.net>
Received: from master.debian.org [146.82.138.7] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EB8C3-0004qD-00; Fri, 02 Sep 2005 02:50:43 -0700
Received: from p50895534.dip.t-dialin.net (bell.credativ.de) [80.137.85.52] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1EB8C1-0007aw-00; Fri, 02 Sep 2005 04:50:42 -0500
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Peter Eisentraut <peter_e at gmx.net>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: adduser: adding system user with existing group fails
X-Mailer: reportbug 3.15
Date: Fri, 02 Sep 2005 11:50:18 +0200
Message-Id: <E1EB8C1-0007aw-00 at master.debian.org>
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-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	OUR_MTA_MSGID autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: adduser
Version: 3.67
Severity: normal

The postgresql-common package does the following to add its system user
"postgres":

    if ! getent passwd postgres > /dev/null; then
        adduser --system --quiet --no-create-home --home /var/lib/postgresql --group --gecos "PostgreSQL administrator" pos
    fi

I suppose this is common usage.

If, for whatever reason, the "postgres" group already exists, that call
fails:

    adduser: The group `postgres' already exists.

($? = 1)

As a consequence, the whole package installation fails in this case.
That makes adduser --system --group a rather fragile combination.  I suggest
that the existing group is not really an error and the new user should
simply be added to the existing group.

---------------------------------------
Received: (at 326192-done) by bugs.debian.org; 3 Oct 2005 20:54:25 +0000
>From mh+debian-packages at zugschlus.de Mon Oct 03 13:54:25 2005
Return-path: <mh+debian-packages at zugschlus.de>
Received: from 5301d.unt0.torres.l21.ma.zugschlus.de (torres.zugschlus.de) [217.151.83.1] (Debian-exim)
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EMXKL-0005rK-00; Mon, 03 Oct 2005 13:54:25 -0700
Received: from mh by torres.zugschlus.de with local (Exim 4.53)
	id 1EMXKJ-0002Rm-Ad; Mon, 03 Oct 2005 22:54:23 +0200
Date: Mon, 3 Oct 2005 22:54:23 +0200
From: Marc Haber <mh+debian-packages at zugschlus.de>
To: Marc Haber <mh+debian-packages at zugschlus.de>
Cc: 326192-done at bugs.debian.org, 327804-done at bugs.debian.org,
	330258-done at bugs.debian.org, 331392-done at bugs.debian.org
Subject: Re: Fixed in upload of adduser 3.70 to experimental
Message-ID: <20051003205423.GA8905 at torres.l21.ma.zugschlus.de>
References: <E1EMWkG-0008Mh-00 at spohr.debian.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <E1EMWkG-0008Mh-00 at spohr.debian.org>
User-Agent: Mutt/1.5.9i
Delivered-To: 326192-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=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02

Version: 3.70

tagging for the BTS version tracking.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835



More information about the Adduser-devel mailing list