Subject: Re: bin/11047: newgrp is missing
To: None <>
From: Greg A. Woods <>
List: tech-userlevel
Date: 04/27/2002 14:06:10
[ On Friday, April 26, 2002 at 17:37:12 (-0600), Rick Kelly wrote: ]
> Subject: Re: bin/11047: newgrp is missing
> If you are
> on SYSV, you must newgrp to reset your effective GID in order to access
> the file.

No, not on any AT&T UNIX System V Release 4.0 or newer (or SunOS-5.x).

Those systems all support setgroups(2) and so far as I've ever seen the
login program on all derrivatives of those systems always calls
setgroups() when you login making your session have the privileges of
all the groups you are a member of at that time (up to the maximum
number allowed by the kernel, NGROUPS_MAX, of course).

The 'id' command will show you what your default group is and what
additional groups you are a member of.

(On *BSD the default group is also the first group listed in the array
returned by getgroups(2).)

								Greg A. Woods

+1 416 218-0098;  <>;  <>;  <>
Planix, Inc. <>; VE3TCP; Secrets of the Weird <>