From owner-freebsd-questions@FreeBSD.ORG Thu Jul 10 03:30:06 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A680A1065687 for ; Thu, 10 Jul 2008 03:30:06 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from aegis.hamla.org (aegis.hamla.org [206.251.255.39]) by mx1.freebsd.org (Postfix) with ESMTP id 8377D8FC1E for ; Thu, 10 Jul 2008 03:30:06 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from localhost (localhost [127.0.0.1]) by aegis.hamla.org (Postfix) with ESMTP id D56F65C2D; Wed, 9 Jul 2008 23:30:03 -0400 (EDT) X-Virus-Scanned: by ClamAV at aegis.hamla.org Received: from aegis.hamla.org ([127.0.0.1]) by localhost (aegis.hamla.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6llzbxeoqClj; Wed, 9 Jul 2008 23:30:02 -0400 (EDT) Date: Wed, 9 Jul 2008 23:30:02 -0400 From: Sahil Tandon To: Andrew Falanga Message-ID: <20080710033002.GB8384@shepherd> Mail-Followup-To: Andrew Falanga , FreeBSD Questions References: <200807092026.42703.af300wsm@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200807092026.42703.af300wsm@gmail.com> Cc: FreeBSD Questions Subject: Re: User properties and how to make files with a specific group owner X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "freebsd-questions@freebsd.org" List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 03:30:06 -0000 Andrew Falanga wrote: > I've not had to set this up and so far my efforts have proven less than > successful. I'm working on a web project with my father and one other > developer. I need to have it so that our user id's, when creating files in > the directory we share the source code in, create the files with the group > id common to the three of us. How do I do this? [...] New files are created with GID set to that of the directory in which they're contained. In your case, is that directory owned by user and group 'andy'? If so: % chown -R :www /path/to/shared/directory ... and every file created therein will have the default GID. -- Sahil Tandon