Vincent Bernat
2005-Feb-10 14:53 UTC
[Adduser-devel] Bug#294579: adduser adds more users than needed in /etc/group
Package: adduser Version: 3.59 Severity: minor Hi ! We use LDAP to manage adm group, except for local users. For example, in /etc/group, adm contains only "logcheck", but if we ask what users are in adm, via NSS, we get more answers fetched from the LDAP base. When adding a local user to adm with "adduser user adm", all users from the LDAP base are added too. The problem lies in the addusertogroup function in adduser. It uses result fetched via NSS to build a new line and give it to gpasswd. There are alternatives, like using -a switch of gpasswd but they have been commented out : # FIXME - the next line has a race condition. #&systemcall(''usermod'', ''-G'', #join(",", get_users_groups($existing_user), $existing_group), #$existing_user); &systemcall(''/usr/bin/gpasswd'', ''-M'', join('','', get_group_members($existing_group), $existing_user), $existing_group); #&systemcall(''gpasswd'', ''-a'',$existing_user,$existing_group); &invalidate_nscd(); -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (990, ''unstable''), (500, ''testing'') Architecture: i386 (i686) Kernel: Linux 2.6.10-1-k7 Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15) Versions of packages adduser depends on: ii debconf 1.4.45 Debian configuration management sy ii passwd 1:4.0.3-30.9 change and administer password and ii perl-base 5.8.4-6 The Pathologically Eclectic Rubbis -- no debconf information
Debian Bug Tracking System
2007-Jul-09 23:21 UTC
[Adduser-devel] Bug#294579: marked as done (adduser adds more users than needed in /etc/group)
Your message dated Mon, 09 Jul 2007 23:17:02 +0000 with message-id <E1I82TW-0003Ud-Ij at ries.debian.org> and subject line Bug#294579: fixed in adduser 3.104 has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------- next part -------------- An embedded message was scrubbed... From: Vincent Bernat <bernat at free.fr> Subject: adduser adds more users than needed in /etc/group Date: Thu, 10 Feb 2005 15:53:33 +0100 Size: 2905 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20070709/e6da4fd2/attachment-0002.eml -------------- next part -------------- An embedded message was scrubbed... From: Stephen Gran <sgran at debian.org> Subject: Bug#294579: fixed in adduser 3.104 Date: Mon, 09 Jul 2007 23:17:02 +0000 Size: 4739 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20070709/e6da4fd2/attachment-0003.eml