[Adduser-devel] Bug#351681: adduser tries to re-use existing GID

Marc Haber mh+debian-packages at zugschlus.de
Tue Feb 21 12:47:30 UTC 2006

On Mon, Feb 20, 2006 at 03:23:27PM -0800, Rob Browning wrote:
> Hmm.  It looks like this bug may have re-surfaced:
>   # adduser nonexistent
>   Adding user `nonexistent'...
>   Adding new group `nonexistent' (1002).
>   groupadd: GID 1002 is not unique
>   adduser: `/usr/sbin/groupadd -g 1002 nonexistent' returned error code 4.  Aborting.
>   # adduser --version | head -1
>   adduser: add a user or group to the system.  Version 3.84
> I'd be happy to provide more information or perform further tests as
> needed.  On this system, postfix is already assigned group 1002.

Jörg is responsible for the code in question, so I suspect that he
will comment later today when he comes in from work.

I would be interested whether you use plain passwords, NIS, LDAP or
other schemes, and what's the output of
perl -e 'print join(":",getgrgid(1002)) || print "undefined\n"'

You could also add some debug output to the code starting line 409 to
find out how $new_gid is determined.


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