#1014355 adduser: ADD_EXTRA_GROUPS does not work

#1014355#5
Date:
2022-07-04 01:32:19 UTC
From:
To:

#1014355#10
Date:
2022-07-05 10:34:23 UTC
From:
To:
The body of the bug report was empty, and I can not confirm the non
working of the option.

The documentation says that the EXTRA_GROUPS (settable only from the
configuration file) are only used for new non-system user iff either
ADD_EXTRA_GROUPS is set or --add_extra_groups is set on the command
line.

This is how adduser in unstable behaves.

root@salida-unstable-buildd-amd64-5okx:/srv# addgroup foo
Adding group `foo' (GID 1000) ...
Done.

(add foo to EXTRA_GROUPS in adduser.conf)
root@salida-unstable-buildd-amd64-5okx:/srv# adduser foo1
root@salida-unstable-buildd-amd64-5okx:/srv# getent group foo
foo:x:1000:
root@salida-unstable-buildd-amd64-5okx:/srv# adduser --add_extra_groups foo2
root@salida-unstable-buildd-amd64-5okx:/srv# getent group foo
foo:x:1000:foo2

(set ADD_EXTRA_GROUPS in adduser.conf)
root@salida-unstable-buildd-amd64-5okx:/srv# adduser foo3
root@salida-unstable-buildd-amd64-5okx:/srv# getent group foo
foo:x:1000:foo2,foo3

And we didnt break that behavior in git head.

What is the bug that is being reported here?

Greetings
Marc

#1014355#15
Date:
2022-07-05 13:03:31 UTC
From:
To:
Apologies, this was filed in error, can be rejected.
#1014355#20
Date:
2022-07-05 13:04:58 UTC
From:
To:
This was filed in error.