> : -----Original Message-----
> : From: [EMAIL PROTECTED]
> : [mailto:[EMAIL PROTECTED]]On Behalf
> : Of Mark Evans
> :
> :
> : Exactly what permissions are these files?
> : Off hand I don't recall any unix version where root can write
> : to a file with no write permission at all.
> 
> 
> I'm afraid that's not correct. I edit read-only files (-r--r--r--) all
> of the time and save them. Vi complains if you don't use the ! to
> override the operation but will dutifully write to it when issued a
> :w!.

I made the mistake of assuming that write
permissions worked exactly the same as
execute.

Though the fact that vi queries it means
that the exact code used matters.

Is vi doing a stat first or does
it change the permissions write
the file then change them back...

-- 
Mark Evans
St. Peter's CofE High School
Phone: +44 1392 204764 X109
Fax: +44 1392 204763


_______________________________________________
Win4Lin-users mailing list
[EMAIL PROTECTED]
https://lists.netraverse.com/mailman/listinfo/win4lin-users

Reply via email to