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

I know that to edit the hosts file you need to launch a text editor as administrator, but that's cumbersome. I am the only person that uses my computer and I edit the hosts file quite frequently because I use the virtual hosts feature in Apache.

Is there any way to tell Windows to just let me edit the hosts file like Windows XP does by default?

share|improve this question

In Windows Explorer, go to c:\Windows\system32\drivers\etc and right click on the hosts file.

Click Properties and go to the Security Tab.

Click Edit and then either add Full control or Modify to the Users object if you want anyone to be able to edit it or if you are the only user who should do it, click Add and add your name as an editable object, and again choose either Full control or Modify.

This should over write the inherited folder level permissions and you should now be able to save there as a un-elevated user.

Alternatively, you can use an editor such as Windows Hosts File Editor (Can't recommend any, but I know a few people like this)

share|improve this answer

This applies to more than just editing the hosts file.

Create Administrator Mode Shortcuts Without UAC Prompts in Windows 7 or Vista

This works by setting up a scheduled task to run the application in Administrator mode, and then setting up a separate shortcut that tells the scheduled task to run. If that sounds difficult, it’s really not… just follow through the instructions below.

Note: Because you are required to click through a UAC prompt to setup the scheduled task, it’s not really a security loophole.

share|improve this answer

Your Answer


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