Date: Thu, 27 Apr 2006 17:07:17 -0500 From: "Noel Jones" <noeldude@gmail.com> To: "Huy Ton That" <huyslogic@gmail.com> Cc: questions@freebsd.org Subject: Re: chown confusion Message-ID: <cce506b0604271507l22c95a44lc1ebb02692a9ea0b@mail.gmail.com> In-Reply-To: <1cac28080604271428g5d5bdd55l6e393417b66f2da9@mail.gmail.com> References: <1cac28080604271428g5d5bdd55l6e393417b66f2da9@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4/27/06, Huy Ton That <huyslogic@gmail.com> 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 <dir/file> or chown > user:groupname <dir/file> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cce506b0604271507l22c95a44lc1ebb02692a9ea0b>