From owner-freebsd-bugs Sat May 4 12:40:11 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 84EF637B41A for ; Sat, 4 May 2002 12:40:04 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g44Je4Z78753; Sat, 4 May 2002 12:40:04 -0700 (PDT) (envelope-from gnats) Date: Sat, 4 May 2002 12:40:04 -0700 (PDT) Message-Id: <200205041940.g44Je4Z78753@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Crist J. Clark" Subject: Re: bin/37733: su(1) does not behave the way it is described in man Reply-To: "Crist J. Clark" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/37733; it has been noted by GNATS. From: "Crist J. Clark" To: Gleb Smirnoff Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/37733: su(1) does not behave the way it is described in man Date: Sat, 4 May 2002 12:35:40 -0700 On Sat, May 04, 2002 at 11:10:39AM +0400, Gleb Smirnoff wrote: [snip] > >Description: > As it is mentioned in manpage su(1) : > > Only users who are a member of group 0 (normally ``wheel'') can su to > ``root''. If group 0 is missing or empty, any user can su to ``root''. > > But if user is not listed in group wheel and his primary group is 0, > he is allowed to su root. As it is said in comment in su.c, this > is the desired behavior. This is quite different to manpage. This is kind of funny. The person who add this feature was added to su(1) did so because some one submitted a PR and they thought it was _more_ consistent with the manpages, revision 1.26 date: 1998/05/25 03:34:52; author: steve; state: Exp; lines: +14 -5 Allow a user in group 0 to su(1) to root if their primary group is 0 in /etc/passwd even if they aren't listed as a member in /etc/group. This is more inline with what the group manpage says. PR: 6696 Submitted by: Max Euston Have a look at the argument in that PR. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message