address@hidden wrote:
> Thanks for your fast answer :)
> I tried it as user and it works, seems to be a root issue
>
> address@hidden:/tmp$ echo foo>file && chmod 444 file && test ! -w file &&
> echo "no write permission"
> no write permission
> address@hidden:/tmp# echo foo>file && chmod 444 file && test ! -w file &&
> echo "no write permission"
> address@hidden:/tmp#
Well, it's telling the truth if you're root,
since it *can* write that file, in spite of the permission bits.