Unable to save /private/etc/hosts Error: /private/etc/hosts is readonly

mac os : 11.5.2(20G95)

sublime Text : 41113


Unable to save /private/etc/hosts Error: /private/etc/hosts is readonly


Use sublime Text app to edit the hosts file (/private/etc/hosts), and an error prompt window like this appears. Nothing like this happened a few days ago. After using the restore system, it returned to normal, but the same problem occurred a few days later.


Does anyone have the same problem?

How do you solve such problems?

Currently, only sudo vim can be used to edit, but this is a bit inconvenient for me.

MacBook Pro 15″, macOS 10.12

Posted on Aug 24, 2021 9:02 PM

Reply

Similar questions

7 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Unable to save /private/etc/hosts Error: /private/etc/hosts is readonly

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.