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?
> japetus /tmp ls -ld . aap
> drwxrwxrwt 5 root root 1024 Oct 24 22:17 .
> -rw-rw-rw- 1 root root 30 Oct 24 22:11 aap
> japetus /tmp rm -f aap
> rm: cannot unlink `aap': Operation not permitted
> japetus /tmp id
> uid=363(fvm) gid=215(sec) groups=215(sec),3972(owner),9998(inet1),9999(inet2),9997(inet3)
> japetus /tmp uname -a
> Linux japetus.localdomain 2.2.13pre9 #1 Sat Sep 18 21:32:21 MEST 1999 i486 unknown
>
>
> 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.

Honza.


-
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.123 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site