[1153] in bugtraq

home help back first fref pref prev next nref lref last post

Re: set group id on directories

daemon@ATHENA.MIT.EDU (Ollivier Robert)
Thu Mar 2 10:58:51 1995

From: Ollivier Robert <Ollivier.Robert@hsc.fr.net>
To: marc@tky.icdc.fr (Marc Samama)
Date: Thu, 2 Mar 1995 14:14:12 +0100 (MET)
Cc: bugtraq@fc.net
In-Reply-To: <9503021100.AA14560@tky> from "Marc Samama" at Mar 2, 95 08:00:36 pm

> I'd like to know if a sgid bit on a directory represents a security risk,
> given the fact that the directory is not world or group writable.

I don't think so.

> On my system, whereas the manual states that this bit is ignored on 
> directories, a file created on such a directory is owned by the same 
> group that posses the dir, and any child directory has the same sgid bit,
> by default.
> 
> It this feature commonly used 

BSD systems don't need this because this is the default behaviour. The setgid
bit on directories was introduced on SVRn systems. On SunOS, you can get
that behaviour back by specifying the option grpid in /etc/fstab.

I may be a little partial but I think the BSD behaviour's better.
-- 
Ollivier ROBERT  -=-=-  Herve Schauer Consultants -=-=-   roberto@FreeBSD.ORG
-=-=-=-=-=- Support The Free UNIX Systems !  FreeBSD NetBSD Linux -=-=-=-=-=-

home help back first fref pref prev next nref lref last post