Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know how to modify entries on the hosts file when it is marked as read-only?

I have tried unchecking the Read-only tick box, but I get an Access is Denied error, and I'm running as the Administrator.

share|improve this question
up vote 5 down vote accepted

Don't edit it in place. Take a copy of it, edit the copy and then replace the original with the edited copy. Doing all this as an administrator of course.

share|improve this answer

Is this a personal machine, or in a corporate environment? Is it possible that it's locked down thru SMS so you're not allowed to change it?

share|improve this answer

If you are unable to change permissions or attributes on a file you can take ownership of the file to force the changes to be made.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.