Control: tag -1 confirmed

On Thu, Sep 01, 2022 at 07:45:24AM +0200, Boris Kolpackov wrote:
> I get the following error when first adding a group and then trying
> to add a user with this group:
> 
> # addgroup --gid 2000 build
> # adduser --uid 2000 --gid 2000 --home /build --gecos "" --disabled-password 
> build
> Adding user `build' ...
> Use of uninitialized value $grname in printf at /usr/sbin/adduser line 625.
> Adding new user `build' (2000) with group ` (-1)' ...
> useradd: group '-1' does not exist
> adduser: `/sbin/useradd -d /build -g -1 -s /bin/bash -u 2000 build' returned 
> error code 6. Exiting.

I confirm this behavior as a bug in adduser 3.128 itself.

> This is using Debian testing (bookworm) and I see
> that the adduser package hasn't changed since stable (bullseye)

Debian stable (bullseye) has adduser 3.118. The current version in
testing is 3.128, which has migrated from unstable to testing on
2022-08-27. So it is not a big surprise that this behavior is new for
you.

Sadly, the only workaround currently available is to use --ingroup. When
this bug report gets marked as closed by upload of a fixed version,
there will be an additional delay before the fix becomes available in
testing.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

Reply via email to