From owner-freebsd-questions@FreeBSD.ORG Mon May 23 13:20:00 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 2755A16A41C for ; Mon, 23 May 2005 13:20:00 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail22.sea5.speakeasy.net (mail22.sea5.speakeasy.net [69.17.117.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id E479443D48 for ; Mon, 23 May 2005 13:19:59 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 27538 invoked from network); 23 May 2005 13:19:59 -0000 Received: by simscan 1.1.0 ppid: 27521, pid: 27534, t: 0.1233s 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 mail22.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 23 May 2005 13:19:59 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id D716630; Mon, 23 May 2005 09:19:57 -0400 (EDT) Sender: lowell@be-well.ilk.org To: cs References: <42900CC6.4090701@ctzen.com> From: Lowell Gilbert Date: 23 May 2005 09:19:57 -0400 In-Reply-To: <42900CC6.4090701@ctzen.com> Message-ID: <44wtpq13lu.fsf@be-well.ilk.org> Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: FreeBSD 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 13:20:00 -0000 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.