On Tuesday 15 March 2005 7:15 pm, Tim Green wrote:
Ah, well, at least vi warns you about trying to edit read only files, and it does let you write to the file (how? not sure of all conditions) if you force it with ":w!"
rm also warns you about write protected files, but can be forced too.
I think it is the case that if you have enough privileges to adjust the file permissions (i.e you are root or the owner of the file) then the force ! makes a temporary change so that the file can be written.