Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Aug 1996 15:22:54 -0700 (PDT)
From:      Tom Samplonius <tom@sdf.com>
To:        pius@ienet.com
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: su question
Message-ID:  <Pine.NEB.3.94.960802151945.23891A-100000@misery.sdf.com>
In-Reply-To: <199608022120.OAA28784@iago.ienet.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, 2 Aug 1996 pius@ienet.com wrote:

> 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

  For security reasons.

Tom




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.94.960802151945.23891A-100000>