Date: Sat, 4 May 2002 12:40:04 -0700 (PDT) From: "Crist J. Clark" <cjc@FreeBSD.ORG> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/37733: su(1) does not behave the way it is described in man Message-ID: <200205041940.g44Je4Z78753@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/37733; it has been noted by GNATS. From: "Crist J. Clark" <cjc@FreeBSD.ORG> To: Gleb Smirnoff <glebius@cell.sick.ru> 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 <meuston@jmrodgers.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205041940.g44Je4Z78753>