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

Bill Sommerfeld sommerfeld at hamachi.org
Sun Mar 10 00:44:20 UTC 2024


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




More information about the openindiana-discuss mailing list