From owner-freebsd-questions@FreeBSD.ORG Thu Apr 27 22:07:19 2006 Return-Path: X-Original-To: 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 B0AAA16A403 for ; Thu, 27 Apr 2006 22:07:19 +0000 (UTC) (envelope-from noeldude@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17E9043D49 for ; Thu, 27 Apr 2006 22:07:18 +0000 (GMT) (envelope-from noeldude@gmail.com) Received: by nproxy.gmail.com with SMTP id m18so47407nfc for ; Thu, 27 Apr 2006 15:07:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BW+aitiNKiMvZkWICyNTrxvOPe6PX5PqM76MUs0PayKopVyIP3k9pdm9I9auL9PtnNq6tlJn2S2OCAZpsH12PxsnTZnDllT2VI1U/dvBzAvF+gcR2118giCXGpTafThnFeIuDR2jH0Rj4qylBLkEcQArZvvswCflFQjLLtLsojo= Received: by 10.48.127.5 with SMTP id z5mr1628481nfc; Thu, 27 Apr 2006 15:07:17 -0700 (PDT) Received: by 10.49.31.6 with HTTP; Thu, 27 Apr 2006 15:07:17 -0700 (PDT) Message-ID: Date: Thu, 27 Apr 2006 17:07:17 -0500 From: "Noel Jones" To: "Huy Ton That" In-Reply-To: <1cac28080604271428g5d5bdd55l6e393417b66f2da9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1cac28080604271428g5d5bdd55l6e393417b66f2da9@mail.gmail.com> Cc: questions@freebsd.org Subject: Re: chown confusion X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 22:07:19 -0000 On 4/27/06, Huy Ton That wrote: > Okay I'm feeling like an idiot now, if i chowned a directory such that > > user 'x' had the ownership of a given directory and was in group 'alpha' > > user 'b' needed to add files to the said directory and was in group 'alph= a' > > now I know usually you do chown :groupname or chown > user:groupname to change ownership however... > > I can limit a directory to only a user, but I want to limit it not at a u= ser > level, but at a group level such that all users in a group can write to a > file. > > An option to remove ownership perhaps chown -:groupname does this make > sense? Sounds as if you want to change the permissions to allow group read/write of the directory, at which point the owner won't matter. You probably want something like: # chgrp groupname dirname # chmod ug+rwx dirname http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/permissions.html -- Noel Jones