[Adduser-devel] Bug#545714: deluser does not remove empty main group when the suer is member of it

Milan Bouchet-Valat nalimilan at club.fr
Wed Nov 23 12:12:09 UTC 2011

Le mercredi 23 novembre 2011 à 09:52 +0100, Marc Haber a écrit :
> retitle #545714 deluser does not remove empty main group when the user is member of it
> thanks
> Hi Milan,
> On Wed, May 26, 2010 at 11:03:19AM +0200, C. Gatzemeier wrote:
> > Does that answer your question so you can
> > close 545714
> May I remind?
Ah, sorry, for some reason I must have missed that question. It's sad
because back at the time I would have been very interested in the
reply. ;-)

But now I don't even remember what solution I found. I think user-admin
no longer adds new users to their main group (at least I can't find such
an operation in the code), but I can't find when that behavior was

I still think the error message that is printed when the user was *not*
member of his main group, which is:
"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."

More information about the Adduser-devel mailing list