Date: 23 May 2005 14:08:43 -0400 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: FreeBSD <freebsd-questions@freebsd.org> Subject: Re: Is this possible ? inherit group permissions Message-ID: <44u0ktzufo.fsf@be-well.ilk.org> In-Reply-To: <20050523093759.M47072@mail.goinet.com> References: <42900CC6.4090701@ctzen.com> <44wtpq13lu.fsf@be-well.ilk.org> <20050523093759.M47072@mail.goinet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Tony Shadwick <tshadwick@goinet.com> writes: > On Mon, 23 May 2005, Lowell Gilbert wrote: > > > cs <cs-fbsd@ctzen.com> writes: > > > >> For a directory, e.g. foo/, if I chmod 775 foo/, is it possible for > >> newly created files and directories under foo/ to automagically > >> inherit the group permissions of foo ? > >> > >> e.g. > >> touch foo/test would be rw-rw-r-- > >> mkdir foo/sub would be rwxrwxr-x > >> > >> I am looking for a non umask solution. > >> > >> I seem to remember in debian, I was able to make the group permissions > >> of the parent directory special for this magic to occur. > >> > >> I wonder if there is something similar in FBSD. > > > > If you set the suid bit, both owner *and* group will be set. > I'll have to remember that one. So if /home is a filesystem unto > itself, if you set the suid bit on /home, all further creation beneath > it will inherit the permissions you set above? Only *directly* underneath it. Obviously you wouldn't want to do that for /home, but I find it quite useful on shared project directories and the like.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44u0ktzufo.fsf>