Windows 10: Unable to edit Hosts file, UAC Off

Discus and support Unable to edit Hosts file, UAC Off in Windows 10 Support to solve the problem; 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... Discussion in 'Windows 10 Support' started by Culbrelai, Jul 18, 2016.

  1. Culbrelai Win User

    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?

    :)
     
    Culbrelai, Jul 18, 2016
    #1

  2. Unable to edit Hosts file

    Thanks Robert.

    I'll try and see if that points to a culprit.

    I tried safe mode as well. That got the same msg.
     
    TheOriginalThee, Jul 18, 2016
    #2
  3. rnpereira Win User
    Unable to edit Hosts file

    In my case that didn't work. I got the same error. If I remember well, system was using hosts.

    I don't know, but maybe my firewall (zone alarm) may be blocking it.
     
    rnpereira, Jul 18, 2016
    #3
  4. derekimo Win User

    Unable to edit Hosts file, UAC Off

    Welcome to the forum,

    Have you tried running notepad as admin?


    Unable to edit Hosts file, UAC Off [​IMG]


    Then navigating to the hosts file,


    Unable to edit Hosts file, UAC Off [​IMG]


    Edit away...


    Unable to edit Hosts file, UAC Off [​IMG]
     
    derekimo, Jul 18, 2016
    #4
  5. Have you tried doing it with UAC on, set to its default setting?
     
    alphanumeric, Jul 18, 2016
    #5
  6. LMiller7 Win User
    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.
     
    LMiller7, Jul 18, 2016
    #6
  7. Culbrelai Win User
    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?

    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?
     
    Culbrelai, Jul 18, 2016
    #7
  8. LMiller7 Win User

    Unable to edit Hosts file, UAC Off

    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.
     
    LMiller7, Jul 18, 2016
    #8
  9. Culbrelai Win User
    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 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.
     
    Culbrelai, Jul 18, 2016
    #9
  10. Mystere Win User
    The Settings app, which is quite important to managing your computer will not run if UAC is turned off.

    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.
     
    Mystere, Jul 18, 2016
    #10
  11. 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.
     
    alphanumeric, Jul 18, 2016
    #11
  12. Culbrelai Win User
    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"


    Unable to edit Hosts file, UAC Off [​IMG]


    Ugh, I should've stayed with XP.

    Oh reallllly? Very interesting.
     
    Culbrelai, Jul 18, 2016
    #12
  13. LMiller7 Win User

    Unable to edit Hosts file, UAC Off

    The XP admin level account provided full administrator rights all the time. Note that it did not provide full access to everything, such as the "System Volume Information" folder. The always on admin rights was a well known security risk but in 2001 it was considered acceptable.

    But the situation changed between 2001 and the time when Vista was in the design phase. Security became an ever increasing problem and Microsoft was under pressure to do something about it. The good news was that computers had more resources. The specified minimum RAM for XP was 64 MB and there were those who thought that too high. But it wasn't enough to provide sophisticated security features. But for Vista it was decided that the minimum RAM specification could be reasonably increased to 512 MB (for Vista Home Basic) and 1 GB for other editions. UAC was one security feature that was now possible. It was a reasonable compromise between convenience and security. Security always has it's price. And not just with computers.

    The designers of any complex software, and any modern operating system is very complex, must make many decisions. Often those decisions will be hard. Sometimes they will be very hard. Sometimes no matter what the decision there will be those who say it was a stupid one. You can't please everyone.

    Providing more options to the user doesn't solve the problem. This adds complexity and a whole new set of problems. And more decisions for the designers.

    The large majority of computer users know little of computers and don't want to learn. The security of UAC must be the default or it will remain off and be useless for the majority of users.

    But there are those who will consider any compromise with convenience as unacceptable. For those individuals, and for the rare but real situations where a full time admin account is acceptable, there are options that allow this. I will not describe how to do this.

    But if you choose to do this you must accept the consequences and things that will not work. These were the difficult decisions that Windows designers had to make.
     
    LMiller7, Jul 19, 2016
    #13
  14. Culbrelai Win User
    What are the actual differences between the fake Administrator account that gets applied to new users when you create the first account and the built in one, besides UAC?
     
    Culbrelai, Jul 23, 2016
    #14
  15. It's not a "fake" administrators account. It has privileges that the Standard user account doesn't.
    https://www.tenforums.com/tutorials/2...dows-10-a.html
     
    alphanumeric, Jul 23, 2016
    #15
Thema:

Unable to edit Hosts file, UAC Off

Loading...
  1. Unable to edit Hosts file, UAC Off - Similar Threads - Unable edit Hosts

  2. Can't edit the hosts file

    in Windows 10 Network and Sharing
    Can't edit the hosts file: I figured out a workaround: Go into Safe Mode. I was having issues with being unable to save changes because file was open in the system. There are quite a few threads about this, all of them locked now, but none seem to mention trying Safe Mode. All the complicated talks of...
  3. Can't edit the hosts file

    in Windows 10 Gaming
    Can't edit the hosts file: I figured out a workaround: Go into Safe Mode. I was having issues with being unable to save changes because file was open in the system. There are quite a few threads about this, all of them locked now, but none seem to mention trying Safe Mode. All the complicated talks of...
  4. Can't edit the hosts file

    in Windows 10 Software and Apps
    Can't edit the hosts file: I figured out a workaround: Go into Safe Mode. I was having issues with being unable to save changes because file was open in the system. There are quite a few threads about this, all of them locked now, but none seem to mention trying Safe Mode. All the complicated talks of...
  5. Unable to edit file

    in Windows 10 Software and Apps
    Unable to edit file: I am trying to trim a clip recorded to my secondary SSD but I don't have permission to edit it? This is my personal pc and I'm not sure why it says that as I am the only person that uses it and there are no other accounts. Thank you! please ask anything if required. This was...
  6. How to edit hosts file in 2020?

    in Windows 10 Network and Sharing
    How to edit hosts file in 2020?: I used to be able to do this, but now nothing I knew to do works. The file in C:\Windows\System32\drivers\etc So what does one have to do now? https://answers.microsoft.com/en-us/windows/forum/all/how-to-edit-hosts-file-in-2020/6fbfab0d-f635-4083-b2fa-18eb4b1faec1
  7. Editing and saving the Hosts file...

    in Windows 10 Network and Sharing
    Editing and saving the Hosts file...: PS i need help... I am able to edit the hosts file in "etc" folder but when i save it wants to replace the hosts file and save the file as a notepad document. I had ownership before, but i removed it hoping that will solve the issue but it didn't. What is worse is that i...
  8. Can't edit host file

    in Windows 10 Network and Sharing
    Can't edit host file: I can't edit the hosts file at all. I tried nearly all the solutions I found here, on Youtube and other sites and none of them worked, including the one on notepad and using cmd. I literally can't do anything with the file. I can't copy, I can't move to another location, I...
  9. Can't edit Hosts file

    in Windows 10 Network and Sharing
    Can't edit Hosts file: In the Path system32/Drivers/etc/hosts - the file does not show up but can be opened with win+r (notepad %windir%/system32/Drivers/etc/hosts). When i try to edit it i cant save it and when i try to replace it dosent give me permission. the host file has a bunch of video game...
  10. Hosts edit

    in Windows 10 Network and Sharing
    Hosts edit: I saw a github post about hosts to prevent bad sites Here so i downloaded the file and copy pasted the entire thing to "hosts" and saved it using notepad on desktop and moved it to system32\drivers\etc\hosts and replaced the original.... Since then I'm not able to connect to...