No permission to change hosts file ?


  1. Posts : 68
    Windows 10 Pro. Build 19045.3393 - Version 22H2
       #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 Computer


  2. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #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 Computer


  3. Posts : 68
    Windows 10 Pro. Build 19045.3393 - Version 22H2
    Thread Starter
       #3

    Thank you, all done !
    Situation sorted
      My Computer


  4. Posts : 1,091
    Windows XP/7/8/8.1/10, Linux, Android, FreeBSD Unix
       #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 Computer


  5. Posts : 2
    Windows 10 Pro
       #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 Computer


  6. Posts : 2
    Win 10
       #6

    loris said:
    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 Computer


  7. Posts : 6
    Win 10 home 64-bit v1903
       #7

    topgundcp said:
    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 Computer


 

  Related Discussions
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 03:41.
Find Us




Windows 10 Forums