1

For example I was fixing an issue with my Iphone which required me to change the hosts file in sys32.. But the computer would tell me I am not allowed to and to contact an administrator. I've already tried Net user administrator /active:yes but even when trying to change and save the hosts file while logged in on the Administrator-account, it will tell me I cant do that.. How do I give myself full access? this is really frustrating

  • You sure you're also part of the administrator group? systems not on a domain is it? – MDT Guy Oct 11 '13 at 17:45
  • To your specific problem: Start Notepad with "Run As Administrator" and then open and edit the hosts file. Also make sure it's not set as read-only. :) – Ƭᴇcʜιᴇ007 Oct 11 '13 at 17:46
  • This behavior is no different having to use the sudo command within OS X or Linux even though you have write permissions to all folders on the system. Some actions on Windows requires you to elevate the process, in order to modify protected files, this was done to prevent malicious processes from modifying it that were installed as an Administrator – Ramhound Oct 11 '13 at 17:53
2

Windows Vista, Windows 7 and Windows 8 all use the User Account Control (UAC) feature. When an application requires administrative priveleges, or when you or a program attempt to change registry or system settings, it will prompt you to ask if that's OK.

The smart thing to do is leave it on, unless you have a specific reason and you are aware of all the security holes it opens. You can turn it off completely in the Control Panel or you can activate the built-in "Administrator" account and use that, but it is highly discouraged.

You can read more about UAC on the Microsoft Support website.

User Account Control (UAC) is a feature in Windows that can help prevent unauthorized changes to your computer. UAC does this by asking you for permission or an administrator‌ password before performing actions that could potentially affect your computer's operation or that change settings that affect other users. When you see a UAC message, read it carefully, and then make sure the name of the action or program that's about to start is one that you intended to start.

By verifying these actions before they start, UAC can help prevent malicious software (malware) and spyware from installing or making changes to your computer without permission.


Your hosts file resides in a protected folder, and a program needs to be running as administrator in order to modify those files.

To edit the hosts file, simply run notepad as administrator. Right click Notepad, then click Run As Administrator. UAC will ask you if it's okay that Notepad now has the ability to do whatever it wants. Confirm that.

From Notepad, open the hosts file, and you can then modify and save it.

  • @chipperyman573 Alright, alright :) – Moses Oct 11 '13 at 18:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.