# Local cannot write to hosts file - OSX

**URL:** <https://community.localwp.com/t/local-cannot-write-to-hosts-file-osx/4589>\
**Category:** Support\
**Created:** [December 28, 2017, 10:16pm UTC](https://community.localwp.com/t/local-cannot-write-to-hosts-file-osx/4589 "2017-12-28T22:16:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![er777](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/er777/32/5348_2.png) [@er777](https://community.localwp.com/u/er777)\
**Post date:** [December 28, 2017, 10:16pm UTC](https://community.localwp.com/t/local-cannot-write-to-hosts-file-osx/4589/1 "2017-12-28T22:16:20Z")

</div>

I installed Local on my laptop. My desktop works fine but this laptop installation gives the notice:

"Local ran into a problem when trying to update the hosts file. " Contact Support  
and “Warning! Missing hosts entry. This site may be inaccessible. FIX IT  
”

The output of terminal command; ls -la /etc/hosts  
is  
-rw-rw-rw- 1 root wheel 3930 Dec 28 16:04 /etc/hosts

Mac OSX Sierra  
Local 2.2.1

Please advise ASAP.

Thanks,  
Eddie

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [January 2, 2018, 7:33pm UTC](https://community.localwp.com/t/local-cannot-write-to-hosts-file-osx/4589/2 "2018-01-02T19:33:14Z")

</div>

Hi Eddie,

Sorry for the trouble!

Are you still running into this issue?

If so, can you please provide your `local-by-flywheel.log` file? See  
"[How do I retrieve Local’s log file?](https://local.getflywheel.com/community/t/how-do-i-retrieve-locals-log-file/3720)" for instructions on how to do so.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:33pm UTC](https://community.localwp.com/t/local-cannot-write-to-hosts-file-osx/4589/3 "2020-08-25T18:33:30Z")

</div>


