Re: buglet in ext2 sticky bit?

Jesse Pollard (pollard@tomcat.admin.navo.hpc.mil)
Mon, 25 Oct 1999 08:59:43 -0500 (CDT)


From: Matthew Kirkwood <weejock@ferret.lmh.ox.ac.uk>
>On Sun, 24 Oct 1999, Jan Kara wrote:
>
>> > AFAIK a file writable for everyone should be deletable when
>> > +t on the parent dir.
>
>> As far as I know this is correct behaviour... Rights on deleted file
>> have no impact on its unlinking (OK, with the exception to the
>> IMMUTABLE and APPEND bits...) - what matters is *only* a directory.
>> When it has sticky bit set than file can be deleted only by its owner
>> or owner of the directory.
>
>Intestingly, this works on Solaris 2.6 (both tmpfs and ufs).
>
>I seem to be able to delete any file in /tmp which I own _or_ can write
>to.
>
>Stevens' APUE doesn't mention this feature, so I'd be tempted to call
>it a bug in Solaris (can't test other OSes, unfortunately).

This does sound like a bug.... You really should not be able to delete
the file, this involvs a write to the directory the file is in and
ownership problems.
-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil

Any opinions expressed are solely my own.

-
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/