Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

The question is simple. Suddenly I can't edit my hosts file on win7 anymore.

I am running notepad as administrator, i get access denied saving the file.

Under the security tab of the file it says administrators have read/write permission. The owner is SYSTEM and i can't seem to change that.

I can edit the file running windows in safe mode.

What can i do?

share|improve this question
up vote 3 down vote accepted

Check if the file doesn't have readonly flag set.

The other issue could be that some protection software installed on your computer prevents editing this file. Try disabling antivirus and similar software temporarely to check if this is the case.

share|improve this answer
Avira antivirus was blocking that file. Cheers. – Jeroen Nov 23 '11 at 11:48

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.