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