lkml.org 
[lkml]   [1999]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: buglet in ext2 sticky bit?
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).

Matthew.



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

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.121 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site