SUID directories -- security concern?

Oliver Laumann net at tub.UUCP
Tue Feb 20 20:40:18 AEST 1990


The set-UID bit on directories is ignored (at least in all version of UNIX
that I'm familiar with).  However, in SunOS the set-GID (GID, not UID) bit
controls the group-ID of newly created sub-directories.  If it is set, a
sub-directory inherits the parent directory's group-ID (i.e. the standard
BSD semantics), otherwise it is set to the process's current group-ID.
Sub-directories inherit the parent directory's set-GID bit (see mkdir(2)).

Regards,
--
Oliver Laumann     net at TUB.BITNET     net at tub.cs.tu-berlin.de     net at tub.UUCP



More information about the Comp.unix.wizards mailing list