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. [EMAIL PROTECTED]:/# 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' ... [EMAIL PROTECTED]:/# 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
Description: Digital signature