> On Mar 9, 2024, at 19:44, Bill Sommerfeld via openindiana-discuss 
> <[email protected]> wrote:
> 
> On 3/9/24 16:31, Rolf M. Dietze wrote:
>> Hello,
>> if the root user wants to write back a file not writable as set by
>> permissions a force write back (wq! in vi) does not work. Is that
>> behavior intended? Other OSes as for instance oracle solaris, FreeBSD,
>> Solaris 10 and so, allow a force write back
>> /rmd
> 
> I can't reproduce; there must be something else at play (like a read-only 
> mount or unusual acls).
> 
> # touch /var/tmp/noway
> # chmod 444 /var/tmp/noway
> # cat /var/tmp/noway
> # vi /var/tmp/noway
> 
> (I type "ifoo <ESC> :wq!)
> 
> # cat /var/tmp/noway
> foo
> 
> 


Immutable or appendonly flag could do that, maybe.

ls -/v would show that.



_______________________________________________
openindiana-discuss mailing list
[email protected]
https://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to