unable to edit hosts file w7 pro, even with notepad running with elevated credentials
I have tried to edit hosts file unsuccessfully. I have run notepad as administrator, navigated to c:\windows\system32\drivers\etc and opened the hosts file. I get a permissions error, this file is read only error when I try to save it. Any idea why? Regards, Anastas
December 20th, 2010 6:03pm

You have to right click on notepad and select "Run as administrator": http://windows.microsoft.com/en-US/windows7/How-do-I-run-an-application-once-with-a-full-administrator-access-token André"A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
Free Windows Admin Tool Kit Click here and download it now
December 20th, 2010 6:23pm

Hi Andre, Thanks for the reply. I was right clicking on notepad and select "Run as administrator", but it won't let me save the hosts file. Anastas "Andre.Ziegler" wrote in message news:adf79690-656d-44e9-a127-f74c693329cd... You have to right click on notepad and select "Run as administrator": http://windows.microsoft.com/en-US/windows7/How-do-I-run-an-application-once-with-a-full-administrator-access-token Andr "A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
December 20th, 2010 6:42pm

You have to set the security permissions on the hosts file in C:\windows\system32\drivers\ect to allow administrators to write the file. See http://www.blogsdna.com/2159/how-to-take-ownership-grant-permissions-to-access-files-folder-in-windows-7.htm for instructions on chaning file permissions. Jerry
Free Windows Admin Tool Kit Click here and download it now
December 20th, 2010 7:56pm

On 12/20/2010 4:22 PM, A M Mikoyan wrote: > I have tried to edit hosts file unsuccessfully. > I have run notepad as administrator, navigated to > c:\windows\system32\drivers\etc and opened the hosts file. > I get a permissions error, this file is read only error when I try to save > it. > Any idea why? > Regards, Anastas Like Vista, you may have two accounts on a file or folder that have permissions. One is your user admin account in the Admin group, which has all permissions. Your admin account is also part of the machinename users group that may not match the same permissions as your admin group account, user group permissions conflict. You can set the machinename users group to match the permissions of the admin group. It should work then to save the file at the location. You can do this if you are the single user of the computer. You can also login with the hidden admin account on Vista and Win 7 that has all rights above the admin account given to you out the box. The procedure works the same on both O/S(s). <http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-windows-vista/>
December 20th, 2010 8:27pm

Thanks Jerry. "jwitalka" wrote in message news:d6a6a9ce-9d52-48c7-a906-653db78fb999... You have to set the security permissions on the hosts file in C:\windows\system32\drivers\ect to allow administrators to write the file. See http://www.blogsdna.com/2159/how-to-take-ownership-grant-permissions-to-access-files-folder-in-windows-7.htm for instructions on chaning file permissions. Jerry
Free Windows Admin Tool Kit Click here and download it now
December 21st, 2010 8:10am

Hi Jerry, this is not needed. I can edit the hosts file when I run notepad with the full admin token. The user made a mistake. I tried it now before posting this and it works fine!"A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
December 21st, 2010 12:03pm

I am not able to edit my Host file in the c:\windows\system32\drivers\etc directory. Even after trying the solutions on this page and changing ownership and all that jazz. The easy fix for this is to edit the HOST file with a text editor, save it to your desktop, remove the .txt extension, then drag and drop it into the c:\windows\system32\drivers\etc folder. You can't save your edits into that folder, but you can copy the file from a non-system directory to the c:\windows\system32\drivers\etc folder. You dont have to change any permissions at all as long as you are a local admin on the computer. My computers are on a domain, so there might be some other permissions that I can't find that might be causing some of the issues.
Free Windows Admin Tool Kit Click here and download it now
May 11th, 2011 12:04am

Actually its much simpler than this. Right click the hosts file and on the drop-down menu click on properties. in the properties you will notice the box [*] Read Only if you un-check the [ ] Read Only box and then click apply or ok, you will now be able to save the file. to save it once you have made the changes to it you wish to make, click save. when it asks you what type to save it as, choose all files. you will now see your original hosts file there. click it and click save. it will ask you to overwirte, tell it yes. tada, you're hosts file now has the edits you wish to make. I have read to delete everything after the "127.0.0.1 localhost" if you are having google redirect errors P.S. If you have Spybot S&D immunized on your system, your hosts file will have a lot of stuff after that. Go ahead and delete it all anyways and then re-apply your immunization on Spybot afterwards to put the correct ones back in. (I in no way condone editing critical system files unless you know what you are doing.) (ALWAYS make a backup of the file before modifying it just in case you mess something up)
June 3rd, 2011 2:00pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics