Subject: Re: bin/11047: newgrp is missing
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-userlevel
Date: 04/27/2002 00:40:34
In article <20020426183945.A27102@noc.untraceable.net>,
Andrew Brown <atatat@atatdot.net> wrote:
>>>yes, we don't have one, but what problem is that?  does it do
>>>something for anyone that they can't already do?
>>
>>It adds a step that a user must do in order to do what he can do now.
>
>i can't really see that it adds anything.
>
>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
>leisure.
>
>i can almost see the utility of a newgrp command for sysv, but not for
>bsd.
>

I agree with that. Newgrp right now is only needed if we introduce sysv
filesystem group semantics.

christos