From owner-freebsd-questions@FreeBSD.ORG Fri May 9 10:12:15 2003 Return-Path: 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 538CB37B401 for ; Fri, 9 May 2003 10:12:15 -0700 (PDT) Received: from pd2mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69D8743FB1 for ; Fri, 9 May 2003 10:12:14 -0700 (PDT) (envelope-from cpressey@catseye.mb.ca) Received: from pd4mr3so.prod.shaw.ca (pd4mr3so-qfe3.prod.shaw.ca [10.0.141.214]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HEM004CUQ84QD@l-daemon> for freebsd-questions@freebsd.org; Fri, 09 May 2003 11:07:16 -0600 (MDT) Received: from pn2ml8so.prod.shaw.ca (pn2ml8so-qfe0.prod.shaw.ca [10.0.121.152]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HEM008FOQ84NO@l-daemon> for freebsd-questions@freebsd.org; Fri, 09 May 2003 11:07:16 -0600 (MDT) Received: from www.kallisti.ca (h24-70-180-74.wp.shawcable.net [24.70.180.74]) 2003))freebsd-questions@freebsd.org; Fri, 09 May 2003 11:07:16 -0600 (MDT) Date: Fri, 09 May 2003 12:07:51 -0500 From: Chris Pressey In-reply-to: To: Paul Lathrop Message-id: <20030509120751.5d591b61.cpressey@catseye.mb.ca> Organization: Cat's Eye Technologies MIME-version: 1.0 X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: cc: freebsd-questions@freebsd.org Subject: Re: Simple / Stupid File Permissions Question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2003 17:12:15 -0000 On Fri, 9 May 2003 12:39:22 -0400 Paul Lathrop wrote: > I have a simple/stupid question regarding permissions. > > What I would like is the following: I have a directory called > group_dir that I would like all members of a group to be able to work > in. However, I find that whenever someone creates a file in that > directory, it is not set group writable. I know the user's umask > setting affects this, but I don't want to change that - then ALL their > files would come out group writable. Basically, I want all files in > group_dir to be readable and writable by group members by default, > including newly created files. Is there a way to do this? I thought up > a kludge to use cron to periodically run chmod -R... but that is so > ugly I don't really want to do it that way. > > Thanks for your assistance, > > Paul D. Lathrop Hello, Not a solution, but a suggesion for a better kludge might be to use /usr/ports/sysutils/wait_on to watch the directory for changes. Unfortunately, I don't think wait_on can watch for changes at any depth in a directory hierarchy, only at the top level. (I'd love to be proven wrong, though.) That limits its usefulness, but if you don't care about subdirectories, it might be workable. -Chris