Subject: Re: bin/11047: newgrp is missing
To: None <>
From: Andrew Brown <>
List: tech-userlevel
Date: 04/27/2002 02:20:01
>>in sysv, files and directories are created according the primary group
>>of the creator.  in bsd, they are created according to the group of
>>the directory in which they are created.  sysv can usually emulate bsd
>>group behavior by means to setting the sgid bit on a directory.
>>in both systems, users can be in multiple groups and once and can
>>chgrp files and directories (that they own) between them at their
>Assuming a file that is 750 or 640. If you are in the correct group on
>BSD, but not the owner, you can execute or read the file. If you are
>on SYSV, you must newgrp to reset your effective GID in order to access
>the file.

based on that argument, bsd could have a small shell script that just
exec'ed $SHELL for the user to accomplish the same thing.  no?  :)

|-----< "CODE WARRIOR" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"       * "information is power -- share the wealth."