From owner-freebsd-questions@FreeBSD.ORG Mon May 23 18:08:48 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC0AA16A41C for ; Mon, 23 May 2005 18:08:48 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail23.sea5.speakeasy.net (mail23.sea5.speakeasy.net [69.17.117.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E3CA43D49 for ; Mon, 23 May 2005 18:08:46 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 11655 invoked from network); 23 May 2005 18:08:46 -0000 Received: by simscan 1.1.0 ppid: 11583, pid: 11651, t: 0.1505s scanners: clamav: 0.84/m:31/d:888 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail23.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 23 May 2005 18:08:46 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id BA80A30; Mon, 23 May 2005 14:08:43 -0400 (EDT) Sender: lowell@be-well.ilk.org To: Tony Shadwick To: FreeBSD References: <42900CC6.4090701@ctzen.com> <44wtpq13lu.fsf@be-well.ilk.org> <20050523093759.M47072@mail.goinet.com> From: Lowell Gilbert Date: 23 May 2005 14:08:43 -0400 In-Reply-To: <20050523093759.M47072@mail.goinet.com> Message-ID: <44u0ktzufo.fsf@be-well.ilk.org> Lines: 30 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: Is this possible ? inherit group permissions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2005 18:08:48 -0000 Tony Shadwick writes: > On Mon, 23 May 2005, Lowell Gilbert wrote: > > > cs writes: > > > >> For a directory, e.g. foo/, if I chmod 775 foo/, is it possible for > >> newly created files and directories under foo/ to automagically > >> inherit the group permissions of foo ? > >> > >> e.g. > >> touch foo/test would be rw-rw-r-- > >> mkdir foo/sub would be rwxrwxr-x > >> > >> I am looking for a non umask solution. > >> > >> I seem to remember in debian, I was able to make the group permissions > >> of the parent directory special for this magic to occur. > >> > >> I wonder if there is something similar in FBSD. > > > > If you set the suid bit, both owner *and* group will be set. > I'll have to remember that one. So if /home is a filesystem unto > itself, if you set the suid bit on /home, all further creation beneath > it will inherit the permissions you set above? Only *directly* underneath it. Obviously you wouldn't want to do that for /home, but I find it quite useful on shared project directories and the like.