1

All instructions I find say to run Notepad as Administrator and open the hosts file from there. Sounds logical, but when I try to save the hosts file I get the following error in a dialog box:

hosts
This file is set to read-only.
Try again with a different name.

Any ideas?

1
  • @Ramhound That dupe is close, but it's about Access Denied, where as this one is about Read-only. Splitting hairs to some, but different answers to fix it. (If someone had suggested read-only on the other I'd have probably agreed with the dupe ;) ). Jan 16, 2015 at 14:22

3 Answers 3

4

Ensure you remove the Read-Only attribute from the HOSTS file.

enter image description here

Some Anti-malware packages like to force it to be read-only, so you may have to disable your anti-malware before you'll be able to do that.

Perhaps check out these related SU questions:

0

In order to edit the file you will either need to open it as Administrator or modify the file, save it to your Documents folder then overwrite the current file (You will be prompted to overwrite as Administrator).

0

after edited I always saved it somewhere else, then copy it to that folder,when the system ask you for administrator privilege, you click ok to overwrite original file.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .