[OpenIndiana-discuss] no force write by root user?

Richard L. Hamilton rlhamil at smart.net
Sun Mar 10 05:38:00 UTC 2024



> On Mar 9, 2024, at 19:44, Bill Sommerfeld via openindiana-discuss <openindiana-discuss at openindiana.org> 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.





More information about the openindiana-discuss mailing list