Can't edit hosts file

Discussion in 'Software & Applications' started by Big Johnny, Sep 22, 2021.

  1. Big Johnny

    Big Johnny Thread Starter
    Expand Collapse
    New Member

    Sep 22, 2021
    Likes Received:
    I posted this on stack exchange and the telegram group. Still hoping to get an answer.
    I use Elementary on my kiddos computer, but MX on my machine. I am getting her machine ready for her to use for online learning and want to edit the host file to block ads.

    I installed MX adblock, eventually, and got it working. Thought everything was fine but did not have internet access via browser when I rebooted. Ping worked, so I was connected, just had no browser access.

    Looked around and the hosts file was not in /ect so I created a blank one (had to launch Thunar using sudo to get ANY kind of root access), rebooted, everything is fine.

    Next I copied my hosts file off my machine, again with sudo thunar replaced the hosts file in /etc, changed the name of the host from my machine's name to hers ( copy/paste so I got it right ), rebooted, and no internet access via browser.

    Went back, deleted the hosts file, made a new blank one, rebooted and everything is fine.

    Why can't I edit the hosts file and still have internet access via browser?

    Tried it w Chrome, Epiphany, and Firefox.

Share This Page