/tmp/test$ ll total 0 -rw-r--r-- 1 root root 0 2004-11-15 00:36 test
/tmp/test$ ll -d ../test/ drwxr-xr-t 2 mick mick 4.0K 2004-11-15 00:36 ../test/
/tmp/test$ rm test rm: remove write-protected regular empty file `test'? y /tmp/test$ ll total 0
But according to the man page of chmod I shouldn't be able to do this:
Interesting. I notice that after a `chown root:root /tmp/test', the file /tmp/test/test cannot be removed any more by the normal user.
So, I suppose the fact that mick can remove the file /tmp/test/test is related to the fact that /tmp/test is owned by mick (or 'joostje' in my case).
There is some logic to it, because if the kernel didn't allow mick to remove /tmp/test/test, mick could simply first run
chmod u-t /tmp/test
and then repeat the rm /tmp/test/test successfully.
-- Groetjes joostje 47d3fcfe28f2a83497e79d9bc7d5087c-4a1ee1fddab4648175518cb4c1c9edb3ed0e89f0
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]