Windows 10: No permission to change hosts file ? Solved


  1. Posts : 23
    Windows 10 Pro 2016 Aniversary 64 Bit
       15 Nov 2015 #1

    No permission to change hosts file ?


    I have changed from W7 to W10 but find that although I am logged in as the administrator, I am unable to save any changes to my hosts file and get the message that I don't have accees/permission and should contact the administrator.
    Can anyone advise me as to what's going on ?
      My ComputerSystem Spec


  2. Posts : 2,033
    Ubuntu14.04x64 MintMate17x64 Win10Prox64
       15 Nov 2015 #2

    Option 1:

    1. Click on Start ->All Apps->Windows Accessories then right click on Notepad->Run As Admin.
    2. Navigate to C:\Windows\System32\Drivers\etc. Click on All Files to see hosts then open

    Option 2:
    Download: Hosts File Editor - Amazify then right click and run as Admin
      My ComputerSystem Spec


  3. Posts : 23
    Windows 10 Pro 2016 Aniversary 64 Bit
    Thread Starter
       15 Nov 2015 #3

    Thank you, all done !
    Situation sorted
      My ComputerSystem Spec


  4. Posts : 806
    Windows XP/7/8/8.1/10, Linux, Android, FreeBSD Unix
       16 Nov 2015 #4

    Even in Win7, hosts file is read only by default, you have to unclick the read only, edit it, then add the read only back.
      My ComputerSystem Spec


  5. Posts : 2
    Windows 10 Pro
       17 Nov 2015 #5

    Another solution is copy the hosts file to your desktop for editing. When done, copy the modified hosts file back to the directory C:\Windows\System32\Drivers\etc for overwriting the original one.
      My ComputerSystem Spec

  6.    10 Jan 2016 #6

    loris said: View Post
    Another solution is copy the hosts file to your desktop for editing. When done, copy the modified hosts file back to the directory C:\Windows\System32\Drivers\etc for overwriting the original one.
    Tried this and the hosts file reverted back to the default. Originally, it worked for about 6 months and then reverted back to the default hosts file. In the end I did copy to the Desktop but after the change I changed the permission to READ only.
      My ComputerSystem Spec

  7.    22 Nov 2016 #7

    topgundcp said: View Post
    Option 1:

    1. Click on Start ->All Apps->Windows Accessories then right click on Notepad->Run As Admin.
    2. Navigate to C:\Windows\System32\Drivers\etc. Click on All Files to see hosts then open

    Option 2:
    Download: Hosts File Editor - Amazify then right click and run as Admin
    I used Option 1. Worked just as it should. You've saved me from all the frustration I felt. Ahhhhhh!
      My ComputerSystem Spec


 

Related Threads
File Permission in General Support
I am running Office 2007, on W10. I have just added to a document, clicked to exit, confirmed save changes, then got this box. How do I get rid of it? Thank You 43529
I can set an alias in the hosts file on a win7 machine and access it just fine but doing the same in Win10 prompts for creds that never work even when entered correctly. What did win10 change? hosts file entry: 127.0.0.1 hostname alias...
My hosts files disappeared in my C:\Windows\System32\drivers\etc. Can some one help me to solve this?
Hi I tried to block some sites in that way but although I cleared DNS cache (ipconfig /flushdns) ater editing the hosts file, I'm still able to access those sites. Googled about it but seems everything has done Ok and wonder why I can't use this...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 07:42.
Find Us