userdel used to delete user private groups if they had
the same name as the user, but it does not seem to do
I don't think it ever used to do that. That is what groupdel does.
useradd adds user private groups. userdel should delete them.
groupadd adds other groups. groupdel should be used to delete
those. But automagically added groups should be automagically
If userdel never did that (I'll have to check) then it is a bug,
as we agreed long ago that it should...
OK, userdel needs to have a command-line option to call groupdel
(it currently doesn't seem to)
michael, can you handle this?
Fixed in shadow-utils-980403-9
userdel now removes the user's primary group IFF
o the group name and and the user name are the same
o no other user has the same primary group id
o no other users are listed in the group list for the primary group