[Adduser-devel] Bug#284688: adduser: adding user to group fails if group already has an invalide user in it

Marc Haber Marc Haber <mh+debian-packages@zugschlus.de>, 284688-maintonly@bugs.debian.org
Sat, 5 Feb 2005 12:03:44 +0100

tags #284688 confirmed

On Wed, Dec 08, 2004 at 12:55:37PM +1100, geoffc@strategicdata.com.au wrote:
> It seems that if a group somehow has a user in it that does not exist,
> you can't add a user to that group anymore.

adduser reads the member list of the group, adds the new user, and
calls gpasswd to write back the new member list. This fails if the
member list has been invalid in the first place.

I confirm this bug, and have added a FIXME to the code.