Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 1996 09:24:50 -0700
From:      "Michael L. VanLoon -- HeadCandy.com" <michaelv@HeadCandy.com>
To:        "Christoph P. Kukulies" <kuku@gilberto.physik.rwth-aachen.de>
Cc:        freebsd-hackers@freefall.freebsd.org
Subject:   Re: newgrp(1) 
Message-ID:  <199605301624.JAA04672@MindBender.HeadCandy.com>
In-Reply-To: Your message of Thu, 30 May 96 12:36:13 %2B0200. <199605301036.MAA20437@gilberto.physik.rwth-aachen.de> 

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

>OSF has it. Is there a chance to get it also for FreeBSD?
[...]
>  newgrp - Changes primary group identification of a shell process
[...]
>  The newgrp command changes the primary group identification of the current
>  shell process to group.  You remain logged in and the current directory is
>  unchanged, but calculations of access permissions to files are performed
>  with respect to the primary group ID.

This is a SysV-ism.  If I'm not mistaken, SysV needs this because you
can only be in one group at a time.  This means you need to constantly
newgrp to change group access permissions if you're moving among
multiple groups.

BSD allows you to be in multiple groups at the same time, so makes
this command pretty much unnecessary.

This is how I understand it, anyway.  I'm sure someone will correct me
if I'm wrong...

-----------------------------------------------------------------------------
  Michael L. VanLoon                                 michaelv@HeadCandy.com
        --<  Free your mind and your machine -- NetBSD free un*x  >--
    NetBSD working ports: 386+PC, Mac 68k, Amiga, Atari 68k, HP300, Sun3,
        Sun4/4c/4m, DEC MIPS, DEC Alpha, PC532, VAX, MVME68k, arm32...
    NetBSD ports in progress: PICA, others...

   Roll your own Internet access -- Seattle People's Internet cooperative.
                  If you're in the Seattle area, ask me how.
-----------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605301624.JAA04672>