Windows 10: Unable to edit Hosts file, UAC Off Solved

Page 1 of 2 12 LastLast

  1. Posts : 39
    W7 Dual Boot/Windows 10 Pro
       19 Jul 2016 #1

    Unable to edit Hosts file, UAC Off


    Hello, I am unable to edit root/system32/drivers/etc/hosts, even with UAC set to "Never Notify". I get access denied errors of different flavors when I attempt to make a new hosts file and replace it, attempt to edit the original and save over... none of my shenanigans appear to work.

    I am the only account (administrator) on this Windows 10 Pro installation.

    What is the deal here, am I missing something?
    Last edited by Culbrelai; 19 Jul 2016 at 01:22.
      My ComputerSystem Spec

  2.    19 Jul 2016 #2

    Welcome to the forum,

    Have you tried running notepad as admin?

    Click image for larger version. 

Name:	2016-07-18_23h18_48.png 
Views:	59 
Size:	17.7 KB 
ID:	90840

    Then navigating to the hosts file,

    Click image for larger version. 

Name:	2016-07-18_23h21_34.png 
Views:	2 
Size:	44.1 KB 
ID:	90841

    Edit away...

    Click image for larger version. 

Name:	2016-07-18_23h22_42.png 
Views:	2 
Size:	30.1 KB 
ID:	90842
      My ComputerSystem Spec

  3.    19 Jul 2016 #3

    Have you tried doing it with UAC on, set to its default setting?
      My ComputerSystem Spec

  4.    19 Jul 2016 #4

    Unlike in Windows 7 the Windows 10 GUI method does not fully disable UAC or grant you full time Admin rights. There is a registry setting that will do this but it's use is not recommended. You would find that many things will not work in this mode and security would be compromised. I will not go into that.

    The supported way to edit the hosts file is to run notepad as administrator.
      My ComputerSystem Spec


  5. Posts : 39
    W7 Dual Boot/Windows 10 Pro
    Thread Starter
       19 Jul 2016 #5

    derekimo said: View Post
    Welcome to the forum,

    Have you tried running notepad as admin?

    Click image for larger version. 

Name:	2016-07-18_23h18_48.png 
Views:	59 
Size:	17.7 KB 
ID:	90840

    Then navigating to the hosts file,

    Click image for larger version. 

Name:	2016-07-18_23h21_34.png 
Views:	2 
Size:	44.1 KB 
ID:	90841

    Edit away...

    Click image for larger version. 

Name:	2016-07-18_23h22_42.png 
Views:	2 
Size:	30.1 KB 
ID:	90842
    Run as administrator? But I am the administrator. I have to do an extra click for no reason every time I want to run something?

    Makes no sense.

    It works, although I'll have to manually browse to a file every time? Is there no way to run as admin from the right click open with context menu?

    Unlike in Windows 7 the Windows 10 GUI method does not fully disable UAC or grant you full time Admin rights. There is a registry setting that will do this but it's use is not recommended. You would find that many things will not work in this mode and security would be compromised. I will not go into that.

    The supported way to edit the hosts file is to run notepad as administrator.
    Windows XP had full time admin rights (for an "administrator" account, go figure! revolutionary!) , which I ran for nearly 15 years with no issues, no UAC nonsense. What "many things" will not work?
      My ComputerSystem Spec

  6.    19 Jul 2016 #6

    The purpose of UAC is to enhance security.

    In XP and older an Admin account had full rights all the time. That was convenient, but not very secure.
    The problem is that by default all programs you run have the same rights and priveleges you do. If that program happens to be malicious (and this is very hard to prevent) you have a problem. It will be able to do pretty much anything it wants. That is bad. When XP was released in 2001 that was an acceptable risk. In 2016 it is not.

    Starting with Vista an Admin account has by default only the rights of a standard user. When running that malicious program it will have only the rights of a standard user and be limited in what it can do. That is good. By using UAC such an account can temporarily be given the full admin rights.

    Long standing best practice is to run with only the minimum rights needed to do the job. That recommendation was in effect long before XP. UAC makes this easier.

    Windows 10 was not designed to run with a full time admin account. Among other things none of the modern apps will run. This is by design.
      My ComputerSystem Spec


  7. Posts : 39
    W7 Dual Boot/Windows 10 Pro
    Thread Starter
       19 Jul 2016 #7

    When XP was released in 2001 that was an acceptable risk. In 2016 it is not.
    Certainly this should be up to the consumer to decide? Instead of surreptitiously neutering the UAC off switch and taking away freedom of choice like some sort of 1984 ministry.

    Among other things none of the modern apps will run. This is by design.
    The Windows 8 apps that I deleted from the start menu the day I got Windows 10?

    What else won't work, or is it just those? Nothing critical? I can live without those, as they are merely dumbed down versions of the actual desktop programs.
      My ComputerSystem Spec

  8.    19 Jul 2016 #8

    The Settings app, which is quite important to managing your computer will not run if UAC is turned off.

    Culbrelai said: View Post
    Certainly this should be up to the consumer to decide? Instead of surreptitiously neutering the UAC off switch and taking away freedom of choice like some sort of 1984 ministry.
    The problem is that security is tough to do when you only have one way of doing it. It's impossible to do if you are required to support insecure situations as well.

    Essentially you're asking to have two doors to your home. One with a lock, and one without. That basically makes the locked door useless and pointless.

    If Microsoft were to make security optional, then there would be no security for anyone.
      My ComputerSystem Spec

  9.    19 Jul 2016 #9

    You are a member of the Administrators group, that's all. You are not "The administrator", those days are gone. You are still subject to UAC prompts for security purposes. I can count on one hand the number of times I have had to actually use the "run as admin" option. Not very often. In some cases yes, but its not something most will have to do very often. There is a full system administrator account but its hidden, and not good practice to use as your every day login account.
      My ComputerSystem Spec


  10. Posts : 39
    W7 Dual Boot/Windows 10 Pro
    Thread Starter
       19 Jul 2016 #10

    This settings app? Note, this was after the required restart to actually turn off UAC as-per guide I found, just like Windows 7 when it was required when you turned the slider all the way down. Back when off meant off... It's important to me because I routinely edit things in Program Files and other "Protected" areas, and Windows doesn't seem to let you with UAC on, even at "never notify"



    You are a member of the Administrators group, that's all. You are not "The administrator", those days are gone.
    Ugh, I should've stayed with XP.

    There is a full system administrator account but its hidden, and not good practice to use as your every day login account.
    Oh reallllly? Very interesting.
    Last edited by Culbrelai; 24 Jul 2016 at 03:07.
      My ComputerSystem Spec


 
Page 1 of 2 12 LastLast

Related Threads
Solved Hosts file in General Support
should the Hosts file be made read only ?
Since using XP and then Windows 7 have always set the Hosts file to read only as a security measure. Is it still advisable to do this on Windows 10?
Hosts file in Network and Sharing
How can I reset the Hosts file back to the default? pls Is This good?
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?
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 05:32.
Find Us