From owner-freebsd-hackers Fri Aug 2 14:20:56 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA02059 for hackers-outgoing; Fri, 2 Aug 1996 14:20:56 -0700 (PDT) Received: from iago.ienet.com (iago.ienet.com [207.78.32.53]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA02051 for ; Fri, 2 Aug 1996 14:20:50 -0700 (PDT) Received: from ienet.com (localhost.ienet.com [127.0.0.1]) by iago.ienet.com (8.7.5/8.7.3) with ESMTP id OAA28784; Fri, 2 Aug 1996 14:20:10 -0700 (PDT) Message-Id: <199608022120.OAA28784@iago.ienet.com> To: freebsd-hackers@FreeBSD.ORG From: pius@ienet.com Subject: su question Date: Fri, 02 Aug 1996 14:20:09 -0700 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Just out of curiosity, when someone does an su to root, why does su check that the username is explicitly listed as a member of group 0 in /etc/group instead of just making sure that the user is part of that group with getgroups(2)? In other words, why should a user with a group ID of 0 in /etc/passwd also have to be listed as a member of wheel in /etc/group in order to su to root? Thanks, Pius