[Pkg-shadow-devel] Re: Bug#381394: postgresql-common fails to install at useradd command

Martin Pitt mpitt at debian.org
Fri Aug 4 07:06:41 UTC 2006


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 at 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 at 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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20060804/06215c56/attachment.pgp


More information about the Pkg-shadow-devel mailing list