Debian Bug report logs - #381394
postgresql-common fails to install at useradd command

version graph

Package: passwd; Maintainer for passwd is Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>; Source for passwd is src:shadow.

Reported by: luke <luke@neuro-tech.net>

Date: Fri, 4 Aug 2006 03:33:09 UTC

Severity: serious

Tags: confirmed, patch

Merged with 381399, 381404, 381408, 381448, 381554

Found in versions 4.0.18-1, shadow/1:4.0.18-1

Fixed in versions 1:4.0.18.1-1, shadow/1:4.0.18.1-1

Done: Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net>

Bug is archived. No further changes may be made.

Forwarded to shadow@pld.org.pl

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Martin Pitt <mpitt@debian.org>:
Bug#381394; Package postgresql-common. Full text and rfc822 format available.

Acknowledgement sent to luke <luke@neuro-tech.net>:
New Bug report received and forwarded. Copy sent to Martin Pitt <mpitt@debian.org>. Full text and rfc822 format available.

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

From: luke <luke@neuro-tech.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: postgresql-common fails to install at useradd command
Date: Thu, 03 Aug 2006 23:15:25 -0400
Package: postgresql-common
Version: 58
Severity: normal

When trying to install postgresql-common (a dependency of the server 
package) I get an error when the user "postgres" is created:

After unpacking 325kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package postgresql-common.
(Reading database ... 82045 files and directories currently installed.)
Unpacking postgresql-common (from .../postgresql-common_58_all.deb) ...
Setting up postgresql-common (58) ...
useradd: invalid numeric argument 'postgres'
adduser: `/usr/sbin/useradd -d /var/lib/postgresql -g postgres -s 
/bin/bash -u 106 postgres' returned error code 3. Exiting.
dpkg: error processing postgresql-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql-8.1:
 postgresql-8.1 depends on postgresql-common (>= 39); however:
  Package postgresql-common is not configured yet.
dpkg: error processing postgresql-8.1 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of 
postgresql-contrib-8.1:
 postgresql-contrib-8.1 depends on postgresql-8.1; however:
  Package postgresql-8.1 is not configured yet.
 postgresql-contrib-8.1 depends on postgresql-common (>= 39); however:
  Package postgresql-common is not configured yet.
dpkg: error processing postgresql-contrib-8.1 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 postgresql-common


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.7
Locale: LANG=en_CA, LC_CTYPE=en_CA (charmap=ISO-8859-1)

Versions of packages postgresql-common depends on:
ii  adduser                       3.96       Add and remove users and groups
ii  debconf [debconf-2.0]         1.5.3      Debian configuration management sy
ii  lsb-base                      3.1-10     Linux Standard Base 3.1 init scrip
ii  postgresql-client-common      58         manager for multiple PostgreSQL cl
ii  procps                        1:3.2.7-2  /proc file system utilities
ii  ssl-cert                      1.0.13     Simple debconf wrapper for openssl

postgresql-common recommends no packages.

-- debconf information:
  postgresql-common/obsolete-major:
  postgresql-common/untransitioned:



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#381394; Package postgresql-common. Full text and rfc822 format available.

Acknowledgement sent to Martin Pitt <mpitt@debian.org>:
Extra info received and forwarded to list. Full text and rfc822 format available.

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

From: Martin Pitt <mpitt@debian.org>
To: 村长 <apzc2529@tom.com>, 381399@bugs.debian.org
Cc: control@bugs.debian.org, 381394@bugs.debian.org
Subject: Re: Bug#381399: Subject: postgresql: postgresql can't be installed
Date: Fri, 4 Aug 2006 08:43:33 +0200
[Message part 1 (text/plain, inline)]
reassign 381399 postgresql-common 58
merge 381399 381394
severity 381399 serious
thanks

村长 [2006-08-04 13:33 +0800]:
> useradd: invalid numeric argument 'postgres'

Thanks for your report, I'm merging this to #381394.

This almost looks like an adduser regression, I'll check it out more
thoroughly.

Thanks,

Martin
-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

In a world without walls and fences, who needs Windows and Gates?
[signature.asc (application/pgp-signature, inline)]

Merged 381394 381399. Request was from Martin Pitt <mpitt@debian.org> to control@bugs.debian.org. Full text and rfc822 format available.

Severity set to `serious' from `normal' Request was from Martin Pitt <mpitt@debian.org> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#381394; Package postgresql-common. Full text and rfc822 format available.

Acknowledgement sent to Martin Pitt <mpitt@debian.org>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #19 received at 381394@bugs.debian.org (full text, mbox):

From: Martin Pitt <mpitt@debian.org>
To: luke <luke@neuro-tech.net>, 381394@bugs.debian.org,
	381399-submitter@bugs.debian.org, passwd@packages.debian.org
Subject: Re: Bug#381394: postgresql-common fails to install at useradd command
Date: Fri, 4 Aug 2006 09:06:41 +0200
[Message part 1 (text/plain, inline)]
reassign 381394 passwd 4.0.18-1
tag 381394 confirmed
thanks

Hi,

luke [2006-08-03 23:15 -0400]:
> When trying to install postgresql-common (a dependency of the server 
> package) I get an error when the user "postgres" is created:
> Setting up postgresql-common (58) ...
> useradd: invalid numeric argument 'postgres'
> adduser: `/usr/sbin/useradd -d /var/lib/postgresql -g postgres -s 
> /bin/bash -u 106 postgres' returned error code 3. Exiting.

I confirmed this in a clean sid environment (pbuilder):

# adduser --debug --system --home /var/lib/postgresql --shell /bin/bash --group --gecos "PostgreSQL administrator" postgres
Selecting UID from range 100 to 999 ...
Selecting GID from range 100 to 999 ...
Adding system user `postgres' (UID 100) ...
Adding new group `postgres' (GID 101) ...
/usr/sbin/groupadd -g 101 postgres
Adding new user `postgres' (UID 100) with group `postgres' ...
/usr/sbin/useradd -d /var/lib/postgresql -g postgres -s /bin/bash -u 100 postgres
useradd: invalid numeric argument 'postgres'
adduser: `/usr/sbin/useradd -d /var/lib/postgresql -g postgres -s /bin/bash -u 100 postgres' returned error code 3. Exiting.
root@box79162:/# echo $?
1

This is with current sid's passwd 4.0.18-1. When downgrading to the previous 4.0.17-2, it works:

# adduser --debug --system --home /var/lib/postgresql --shell /bin/bash --group --gecos "PostgreSQL administrator" postgres
Selecting UID from range 100 to 999 ...
Selecting GID from range 100 to 999 ...
Adding system user `postgres' (UID 100) ...
Adding new group `postgres' (GID 101) ...
/usr/sbin/groupadd -g 101 postgres
Adding new user `postgres' (UID 100) with group `postgres' ...
/usr/sbin/useradd -d /var/lib/postgresql -g postgres -s /bin/bash -u 100 postgres
/usr/bin/chage -M 99999 postgres
/usr/bin/chfn -f PostgreSQL administrator postgres
Creating home directory `/var/lib/postgresql' ...
root@box79162:/# echo $?
0

Thus this seems to be a regression in the latest useradd, reassigning.

Thanks,

Martin
-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

In a world without walls and fences, who needs Windows and Gates?
[signature.asc (application/pgp-signature, inline)]

Bug reassigned from package `postgresql-common' to `passwd'. Request was from Martin Pitt <mpitt@debian.org> to control@bugs.debian.org. Full text and rfc822 format available.

Tags added: confirmed Request was from Martin Pitt <mpitt@debian.org> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>:
Bug#381394; Package passwd. Full text and rfc822 format available.

Acknowledgement sent to Matt Kraai <kraai@ftbfs.org>:
Extra info received and forwarded to list. Copy sent to Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>. Full text and rfc822 format available.

Message #28 received at 381394@bugs.debian.org (full text, mbox):

From: Matt Kraai <kraai@ftbfs.org>
To: 381394@bugs.debian.org, control@bugs.debian.org
Subject: Patch
Date: Fri, 4 Aug 2006 01:00:40 -0700
[Message part 1 (text/plain, inline)]
tag 381394 patch
thanks

The attached patch should fix this problem by adding support for
passing group names to useradd's -g option.

-- 
Matt
[patch (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Tags added: patch Request was from Matt Kraai <kraai@ftbfs.org> to control@bugs.debian.org. Full text and rfc822 format available.

Merged 381394 381399 381408. Request was from Matt Kraai <kraai@ftbfs.org> to control@bugs.debian.org. Full text and rfc822 format available.

Merged 381394 381399 381404 381408. Request was from Francesco Paolo Lovergine <frankie@debian.org> to control@bugs.debian.org. Full text and rfc822 format available.

Merged 381394 381399 381404 381408 381448. Request was from Martin Pitt <mpitt@debian.org> to control@bugs.debian.org. Full text and rfc822 format available.

Reply sent to Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to luke <luke@neuro-tech.net>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #41 received at 381394-close@bugs.debian.org (full text, mbox):

From: Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net>
To: 381394-close@bugs.debian.org
Subject: Bug#381394: fixed in shadow 1:4.0.18.1-1
Date: Fri, 04 Aug 2006 15:17:15 -0700
Source: shadow
Source-Version: 1:4.0.18.1-1

We believe that the bug you reported is fixed in the latest version of
shadow, which is due to be installed in the Debian FTP archive:

login_4.0.18.1-1_i386.deb
  to pool/main/s/shadow/login_4.0.18.1-1_i386.deb
passwd_4.0.18.1-1_i386.deb
  to pool/main/s/shadow/passwd_4.0.18.1-1_i386.deb
shadow_4.0.18.1-1.diff.gz
  to pool/main/s/shadow/shadow_4.0.18.1-1.diff.gz
shadow_4.0.18.1-1.dsc
  to pool/main/s/shadow/shadow_4.0.18.1-1.dsc
shadow_4.0.18.1.orig.tar.gz
  to pool/main/s/shadow/shadow_4.0.18.1.orig.tar.gz



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

Debian distribution maintenance software
pp.
Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net> (supplier of updated shadow 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: Fri,  4 Aug 2006 18:50:53 +0200
Source: shadow
Binary: login passwd
Architecture: source i386
Version: 1:4.0.18.1-1
Distribution: unstable
Urgency: low
Maintainer: Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>
Changed-By: Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net>
Description: 
 login      - system login tools
 passwd     - change and administer password and group data
Closes: 381394 381399 381404 381408 381448
Changes: 
 shadow (1:4.0.18.1-1) unstable; urgency=low
 .
   * The "Laguiole" release
   * New upstream version.
   * Upstream bugs not yet fixed in upstream releases or CVS:
     - 497_non_numerical_identifier: In useradd and usermod, only numerical
       group identifiers were supported.
       Closes: #381394, #381399, #381404, #381408, #381448
     - 498_man_nonpam_undefined: Fix a build failure.
   * Debian specific fixes:
     - 496_login_init_session: only start a new session if we are init.
Files: 
 c26096a561d2bf1faa19815c03c7f593 1049 admin required shadow_4.0.18.1-1.dsc
 3f54eaa3a35e7c559f4def92e9957581 2354234 admin required shadow_4.0.18.1.orig.tar.gz
 0f893cf945b870bc10f56c4f57b9218f 164144 admin required shadow_4.0.18.1-1.diff.gz
 a805e16b24ccfae0d2e21888b988bf1d 783552 admin required passwd_4.0.18.1-1_i386.deb
 b62dc437ec769613563ba014e2e62dbd 797964 admin required login_4.0.18.1-1_i386.deb

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

iD8DBQFE08IDST77jl1k+HARAvP5AKDHqNGUWlb2lxpCLWzRk9evJUZ1SQCgwrni
LtE94Am1q3jUmM9S9eDywyk=
=LvFC
-----END PGP SIGNATURE-----




Reply sent to Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to "村长" <apzc2529@tom.com>:
Bug acknowledged by developer. Full text and rfc822 format available.

Reply sent to Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Miles Bader <miles.bader@necel.com>:
Bug acknowledged by developer. Full text and rfc822 format available.

Reply sent to Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Matt Kraai <kraai@ftbfs.org>:
Bug acknowledged by developer. Full text and rfc822 format available.

Reply sent to Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Fidel Ramos <fidelramos@ieee.org>:
Bug acknowledged by developer. Full text and rfc822 format available.

Merged 381394 381399 381404 381408 381448 381554. Request was from Stephen Gran <sgran@debian.org> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>:
Bug#381394; Package passwd. Full text and rfc822 format available.

Acknowledgement sent to Christian Perrier <bubulle@debian.org>:
Extra info received and forwarded to list. Copy sent to Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>. Full text and rfc822 format available.

Message #68 received at 381394@bugs.debian.org (full text, mbox):

From: Christian Perrier <bubulle@debian.org>
To: shadow@pld.org.pl
Cc: 381394@bugs.debian.org
Subject: Re: shadow 4.0.18.1: useradd -g broken (patch incl.)
Date: Tue, 19 Sep 2006 06:34:47 +0200
[Message part 1 (text/plain, inline)]
forwarded 381394 shadow@pld.org.pl
thanks

Quoting Brandon Peirce (brandon_peirce@hotmail.com):
> I wrote:
> >Hello,
> >
> >The fix from http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=198920 
> >seems
> >to have completely broken the -g option of useradd.  (src/usradd.c  $Id: 
> >1.100)
> 
> The indents in the patch got lost in the cut & paste - sorry :(
> Patch resent as attachment.


For the sake of it, here's the patch we use in Debian for that problem
(bugs #381394, #381399, #381404, #381408, #381448 in Debian BTS).

It seems, by the way, that, contrary to our usual policy, we did not
send it to Tomasz. We use to send our patches directly to him. Maybe
we should indeed send them to this list (which I, as one of shadow
maintainers in Debian, am subscribed to) so that they're exposed to
peer review, especially by maintainers of shadow in other distros.

I'm not in the position of comparing both patches indeed but I guess
that Tomasz will (though we haven't heard from him in the last weeks).


[497_non_numerical_identifier (text/plain, attachment)]

Noted your statement that Bug has been forwarded to shadow@pld.org.pl. Request was from Christian Perrier <bubulle@debian.org> to control@bugs.debian.org. Full text and rfc822 format available.

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 24 Jun 2007 10:22:52 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Feb 9 19:40:44 2010; Machine Name: busoni.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.