From owner-freebsd-questions@FreeBSD.ORG Fri May 9 10:30:12 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 417EE37B404 for ; Fri, 9 May 2003 10:30:12 -0700 (PDT) Received: from Gina.esfm.ipn.mx (esfm.ipn.mx [148.204.102.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D6F643F75 for ; Fri, 9 May 2003 10:30:11 -0700 (PDT) (envelope-from mrspock@esfm.ipn.mx) Received: from Gina.esfm.ipn.mx (localhost [127.0.0.1]) by Gina.esfm.ipn.mx (8.12.6p2/8.12.6) with ESMTP id h49HSNEJ041672; Fri, 9 May 2003 12:28:23 -0500 (CDT) (envelope-from mrspock@esfm.ipn.mx) Received: from localhost (mrspock@localhost)h49HSN98041668; Fri, 9 May 2003 12:28:23 -0500 (CDT) X-Authentication-Warning: Gina.esfm.ipn.mx: mrspock owned process doing -bs Date: Fri, 9 May 2003 12:28:23 -0500 (CDT) From: Eduardo Viruena Silva To: Chris Pressey In-Reply-To: <20030509120751.5d591b61.cpressey@catseye.mb.ca> Message-ID: <20030509122649.C41420@Gina.esfm.ipn.mx> References: <20030509120751.5d591b61.cpressey@catseye.mb.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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:30:12 -0000 On Fri, 9 May 2003, Chris Pressey wrote: > 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. change umask for the users that want to write in this directory. Instead of having: umask 022 try: umask 002 > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > - ______ _ * / /###\ / \ __ /\ /\ * / ./#### \ * \__|_/ | | / \/ \ | b#####| * _ | __ | | __ = .. \____ \ \_\#####/ / \| / \ | | /\_\/ = \_| * \___\###/ * \_/\_/\__/\__\/_/\__/ = \______/ _ | |