Permission Denied on Hosts File (Windows 7)

2010
08
Mar
2

On Windows 7, I was trying to edit the host file using Komodo and was getting Permission Denied, and tried notepad too still got permission denied. I thought initially it was McAfee Anti Virus that was disabling the edit of host file as this file is an important system configuration file.

The reason but was that Windows requires the editor to run with administrator privileges to edit the file, this is different in Windows XP because all programs by default used to run as Administrator if your were an administrator. The feature in Windows 7 is good as it helps protect against most mallicious software which when run as administrator can cause havoc.

So inorder to edit hosts file on Windows 7 ,
Goto Start Menu > Enter Notepad > Right-Click on Notepad > Run as administrator .

Now you can open the hosts file and edit it.

Smiling

Similar Posts
Related Searches




Comments

still didnt work for me

still didnt work for me

double check, is read only enabled ?

right click the host file, go to properties. see if read only is checked. if so, uncheck it. then perform edits to the host file. after you are finished, make sure to go back to the properties of the file and re-check the "read only" option. this is to protect the host file from being unwantingly changed.

Post new comment

The content of this field is kept private and will not be shown publicly.