From owner-freebsd-hackers Fri May 31 04:19:59 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA07195 for hackers-outgoing; Fri, 31 May 1996 04:19:59 -0700 (PDT) Received: from fire.dkrz.de (fire.dkrz.de [136.172.110.250]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id EAA07188 for ; Fri, 31 May 1996 04:19:53 -0700 (PDT) Received: from racer.dkrz.de (racer.dkrz.de [136.172.110.55]) by fire.dkrz.de (8.7.5/8.7.3) with ESMTP id NAA10983; Fri, 31 May 1996 13:18:59 +0200 (MET DST) Received: (from gwk@localhost) by racer.dkrz.de (8.7.4/8.7.3) id NAA20060; Fri, 31 May 1996 13:17:44 +0200 (MET DST) Date: Fri, 31 May 1996 13:17:44 +0200 (MET DST) Message-Id: <199605311117.NAA20060@racer.dkrz.de> From: "Georg-W. Koltermann" To: eischen@vigrid.com CC: kuku@gilberto.physik.rwth-aachen.de, michaelv@HeadCandy.com, freebsd-hackers@freefall.freebsd.org In-reply-to: <9605302018.AA11531@pcnet1.pcnet.com> (eischen@vigrid.com) Subject: Re: newgrp(1) X-Attribution: gwk Reply-to: gwk@cray.com Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >>>>> "Daniel" == Daniel Eischen writes: Daniel> Daniel> The problem is not when you want to reference files that Daniel> already exist, but when you want to create files with a Daniel> specific group so that only others in that group can Daniel> reference them. Daniel> Daniel> We use the newgrp command on our HP systems for various Daniel> projects with multiple developers. Each project usually Daniel> usually has at least one group associated with it. By Daniel> using newgrp before we start any processes that can create Daniel> files, we're assured that the files have the correct Daniel> permissions (group). GUI-based systems, like Interleaf, Daniel> Atria ClearCase, compilers, etc, can then be used to Daniel> create files with the correct group. This is really Daniel> important when you're not granted root permissions on the Daniel> systems; you can't hunt around and manually set the group Daniel> on all files in the project directory because you don't Daniel> own them. Daniel> Daniel> Unless there's another way of doing this in FreeBSD, I'd Daniel> like to see the newgrp command brought in. My $.02. Daniel> Daniel> Dan Eischen eischen@pcnet.com Daniel> This is BSD. New files inherit the group OF THE DIRECTORY WHERE THEY ARE CREATED [as long as the group of that directory is in the authorized group list of the creating process]. To the contrary, on SysV new files inherit the primary group of the creating process. I would still believe that you don't need newgrp(1). Georg-W. Koltermann, gwk@cray.com