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

Joerg Hoh joerg at joerghoh.de
Tue Feb 21 19:26:15 UTC 2006


On Mon, Feb 20, 2006 at 03:23:27PM -0800, Rob Browning wrote:
> 
> reopen 351681
> thanks
> 
> 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.

Hm, strange; I cannot reproduce it;

joerg at hydra Temp $ LANG=C id foobar
id: foobar: No such user
joerg at hydra Temp $ LANG=C sudo adduser foobar
Adding user `foobar'...
Adding new group `foobar' (1002).
Adding new user `foobar' (1002) with group `foobar'.
Creating home directory `/home/foobar'.
Copying files from `/etc/skel'
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for foobar
Enter the new value, or press ENTER for the default
        Full Name []:
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [y/N] y
joerg at hydra Temp $ LANG=C id foobar
uid=1002(foobar) gid=1002(foobar) groups=1002(foobar)
joerg at hydra Temp $ LANG=C sudo deluser --remove-home foobar
Looking for files to backup/remove...
Removing files...
Removing user `foobar'...
done.
joerg at hydra Temp $ grep "foobar" /etc/group
joerg at hydra Temp $ sudo adduser --version
adduser: add a user or group to the system.  Version 3.84

Can you run adduser with the --debug option and give some more information
about the relevant environment (as Marc already said)?

Jörg

-- 
Was denen einen ihr Watergate, ist den anderen ihr Firstgate.
- Thomas Bliessner, <slrnd1hklm.g53.nospam at melix.com.mx>
-------------- 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/adduser-devel/attachments/20060221/a84604cb/attachment.pgp


More information about the Adduser-devel mailing list