Bugzilla – Bug 913
Editing with sudo fails on recent versions of macOS
Last modified: 2020-06-19 06:14:02 MDT
Created attachment 537 [details] A quick attempt at fixing this Recent versions of macOS — from Catalina, at least — mount the root file system as read-only. This breaks both 'sudo -e' and 'sudoedit': $ sudo -e /etc/hosts sudo: /etc/hosts: Read-only file system I've attached a small patch that fixes this on my Mac.
Created attachment 538 [details] The same quick attempt at fixing this, but marked as a patch
Thanks, that fix looks good.
The fixed was included in Sudo 1.8.31