Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 2 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
add comment

Your Answer

 
discard

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.