From owner-freebsd-questions Fri May 31 01:34:59 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA28925 for questions-outgoing; Fri, 31 May 1996 01:34:59 -0700 (PDT) Received: from proxy.siemens.at (proxy.siemens.at [192.138.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id BAA28903 for ; Fri, 31 May 1996 01:34:43 -0700 (PDT) Received: from sol1.gud.siemens.co.at (sol-f.gud.siemens-austria) by proxy.siemens.at with SMTP id AA04786 (5.67a/IDA-1.5 for ); Fri, 31 May 1996 10:34:02 +0200 Received: from ws2301.gud.siemens.co.at by sol1.gud.siemens.co.at with smtp (Smail3.1.28.1 #7 for ) id m0uPPej-00020IC; Fri, 31 May 96 10:34 MET DST Received: by ws2301.gud.siemens.co.at (1.37.109.16/1.37) id AA060621421; Fri, 31 May 1996 10:30:21 +0200 From: "Hr.Ladavac" Message-Id: <199605310830.AA060621421@ws2301.gud.siemens.co.at> Subject: Re: newgrp(1) To: eischen@vigrid.com (Daniel Eischen) Date: Fri, 31 May 1996 10:30:20 +0200 (MESZ) Cc: questions@freebsd.org In-Reply-To: <9605302018.AA11531@pcnet1.pcnet.com> from "Daniel Eischen" at May 30, 96 04:18:56 pm X-Mailer: ELM [version 2.4 PL24 ME8a] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In his e-mail Daniel Eischen wrote: > > We use the newgrp command on our HP systems for various projects with > multiple developers. Each project usually usually has at least one > group associated with it. By using newgrp before we start any processes > that can create files, we're assured that the files have the correct > permissions (group). GUI-based systems, like Interleaf, Atria ClearCase, > compilers, etc, can then be used to create files with the correct group. > This is really important when you're not granted root permissions on > the systems; you can't hunt around and manually set the group on all > files in the project directory because you don't own them. > > Unless there's another way of doing this in FreeBSD, I'd like to see > the newgrp command brought in. My $.02. As already mentioned, in BSD created files inherit the group membership of the parent directory. Therefore, in order to make a directory subtree accessible to a single group of people, all you need to do is chgrp the root of the subtree when you start to build the subtree. /Marino BTW, we also use newgrp on our HP's, and it's a major pain. Namely, normally one has one subtree accessible to group A, the other to group B. Now, the poor guy who's in both will half of the time create files with the wrong group membership. > > Dan Eischen > eischen@pcnet.com >