Permission Denied on Hosts File (Windows 7)
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.:) 08 Mar, 2010