From owner-freebsd-current Sun Jan 26 04:25:47 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA04987 for current-outgoing; Sun, 26 Jan 1997 04:25:47 -0800 (PST) Received: from al.imforei.apana.org.au (pjchilds@al.imforei.apana.org.au [202.12.89.41]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA04978 for ; Sun, 26 Jan 1997 04:25:38 -0800 (PST) Received: (from pjchilds@localhost) by al.imforei.apana.org.au (beBop) id WAA27799; Sun, 26 Jan 1997 22:55:02 +1030 (CST) Date: Sun, 26 Jan 1997 22:55:02 +1030 (CST) From: Peter Childs Message-Id: <199701261225.WAA27799@al.imforei.apana.org.au> To: davidn@unique.usn.blaze.net.au (David Nugent), freebsd-current@freebsd.org, davo@chunga.kt.apana.org.au Subject: Re: FreeBSD-SNAP-970118 X-Newsreader: TIN [UNIX 1.3 unoff BETA release 961020] Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article you wrote: : "Joe \"Marcus\" Clarke" writes: : > I have noticed that the adduser command under this SNAP does not : > correctly add users to /etc/group. I have to manually edit this file to : > get users to correspond to their respective groups. : Are you talking about primary or secondary group memberships? : A user's primary group membership should not appear in /etc/groups : if that group's uid is in /etc/master.passwd. That is redundant. : The only exception to this is when adding a member to group wheel. : su only looks at /etc/group in this case (which, actually, I consider : a bug, but not a large one). I thought this interesting so asked a friend and he pointed me at the getgrnam() func. After a quick look at that code I'd say something is broken :) Since getgrnam() returns a struct with a list of group members, but it doesn't seem to touch /etc/passwd then i guess if a member is in a group they should be in /etc/group if they want to be indentified as such? I'm not sure what depends on all this stuff.. but there seems to be something inconsistent here... [its a feature god-damn-it!] Regards, Peter -- Peter Childs --- http://www.imforei.apana.org.au/~pjchilds Finger pjchilds@al.imforei.apana.org.au for public PGP key Drag me, drop me, treat me like an object!