Re: buglet in ext2 sticky bit?

Alexander Viro (viro@math.psu.edu)
Sun, 24 Oct 1999 16:59:12 -0400 (EDT)


On Sun, 24 Oct 1999, Gabor Lenart wrote:

> > AFAIK a file writable for everyone should be deletable when
> > +t on the parent dir.
>
> I think no. In a directory with rights 0777 everyone remove any file as far
> as I know. +t for directories make to deletable files in it only by its owner
> (root can delete though). Correct me please, if I wrong.

You are right. Sticky bit semantics is:
if directory has sticky bit and
you are not owner of the directory and
you are not owner of the inode the link points to
you are not permitted to remove the link
otherwise
permissions are calculated ignoring sticky bit.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/