From owner-freebsd-bugs Tue Apr 8 19:36:10 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA20243 for bugs-outgoing; Tue, 8 Apr 1997 19:36:10 -0700 (PDT) Received: from unique.usn.blaze.net.au (unique.usn.blaze.net.au [203.17.53.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA20238 for ; Tue, 8 Apr 1997 19:36:05 -0700 (PDT) Received: (from davidn@localhost) by unique.usn.blaze.net.au (8.8.5/8.8.5) id MAA26269; Wed, 9 Apr 1997 12:34:08 +1000 (EST) Message-ID: <19970409123407.25120@usn.blaze.net.au> Date: Wed, 9 Apr 1997 12:34:07 +1000 From: David Nugent To: Pedro Giffuni Cc: freebsd-bugs@freefall.freebsd.org Subject: Re: bin/3233: adduser(8) doesn't add users to the wheel group References: <199704090200.TAA18639@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69e In-Reply-To: <199704090200.TAA18639@freefall.freebsd.org>; from Pedro Giffuni on Tue Apr 8 19:00:03 EST 1997 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue Apr 8 19:00:03 EST 1997, Pedro Giffuni writes: > David Nugent wrote: > > > > Known problem. You *need* to be in /etc/group since that's > > all that su looks at, not the primary group for the user. > > Yes.. thanks, I corrected my particular case, but the bug is still in > adduser ;). No, there's no bug. If you tell adduser to make 'wheel' your primary group, it should not put your name in /etc/group on the 'wheel' line. /etc/group is for secondary group memberships only. pw(8) has this same "bug", but it isn't a bug - it is 100% correct behaviour. Use a different group for your primary group and add yourself to wheel as secondary. initgroups() automatically adds the primary group to your groups list at runtime. David