[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: removing a file
> In MiNT 1.10, you can only remove a file in a directory iff:
>
> (1) you have write permission to the directory,
> (2) you own the file.
^^^^^^^^^^^^^^^^
That's right if the sticky-bit is set. Otherwise, I should be allowed
to remove ANY file in the directory!
The problem is: I need write permission for the file. Somebody included
the check of the file modes in Mint 1.10.
But that is totally bullshit! I need write permission for the
*directory*, and NOT for the *file* itself to be allowed to remove it.
Try this in Mint 1.10:
% touch hello
% chmod 400 hello
% rm -f hello
rm: hello: access denied
:-\
I removed these checks from the Fdelete() call and everything works
better again! (including elm that creates it's lockfiles readonly).
Benni
--
Benjamin Lorenz, Brunnenweg 33, D-66133 Saarbruecken
Phone: +49 681 815702, E-mail: lorenz@dfki.uni-sb.de