Control: tags -1 moreinfo thanks Hi,
I am coming back to this bug report after more than a decade. Sorry for that. The mess in adduser is slowly beginning to clear up. For this issue, I need a better reproducer. If you're still interested in this, it might be useful if you submit a typescript of commands and their output, and from the point on where the results are unexpected I would like to know what happens and what you would expect. Are you talking about the behavior of deluser when a user has the same group both as primary group and as supplementary group? If so, things seem to be fine now: root@fan-sid-buildd-amd64-zyui:/srv# addgroup keks Adding group `keks' (GID 1000) ... Done. root@fan-sid-buildd-amd64-zyui:/srv# adduser --ingroup keks kruemel Adding user `kruemel' ... Adding new user `kruemel' (1001) with group `keks (1000)' ... Creating home directory `/home/kruemel' ... Copying files from `/etc/skel' ... New password: Retype new password: passwd: password updated successfully Changing the user information for kruemel Enter the new value, or press ENTER for the default Full Name []: Monster Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] y Adding new user `kruemel' to supplemental / extra groups `users' ... Adding user `kruemel' to group `users' ... root@fan-sid-buildd-amd64-zyui:/srv# getent passwd kruemel kruemel:x:1001:1000:Monster,,,:/home/kruemel:/bin/bash root@fan-sid-buildd-amd64-zyui:/srv# getent group keks keks:x:1000: root@fan-sid-buildd-amd64-zyui:/srv# adduser kruemel keks Adding user `kruemel' to group `keks' ... Done. root@fan-sid-buildd-amd64-zyui:/srv# getent passwd kruemel kruemel:x:1001:1000:Monster,,,:/home/kruemel:/bin/bash root@fan-sid-buildd-amd64-zyui:/srv# getent group keks keks:x:1000:kruemel root@fan-sid-buildd-amd64-zyui:/srv# deluser kruemel deluser: `/usr/bin/crontab' not executed. Skipping crontab removal. Package `cron' required. Removing user `kruemel' ... Done. root@fan-sid-buildd-amd64-zyui:/srv# getent passwd kruemel root@fan-sid-buildd-amd64-zyui:/srv# getent group keks keks:x:1000: root@fan-sid-buildd-amd64-zyui:/srv# If I have guessed wrong, I need to know what a "main group" is. On Wed, Nov 23, 2011 at 01:12:09PM +0100, Milan Bouchet-Valat wrote: > "Warning: group X is now empty." > should be fixed, as it is clearly wrong. This warning should be printed > when the group *is not* removed ; and when the group is removed, deluser > would better say: > "Empty group X has been automatically deleted." The adduser code does not contain the string "is now empty". It was either removed over the last eleven years, or it originates from the low-level tools from the passwd package, like useradd, userdel etc. We probably cannot do much about this inside adduser. I would like to have this bug closed, but the fix is not goingt to make it into bookworm. If I dont get response for this mail by the end of June 2023 (which is half a year in the future now), I will close this bug report. Greetings Marc