Ordinary users to modify the hosts file

Problem fixed: modify hosts using user Henry
    Run Command Prompt as administrator,
    cd c:\windows\system32\drivers\etc,
    execute following command: notepad hosts   

:)

 

Found another way to solve the problem:

Problem : Because of Vista UAC mechanism, so the system folder of all operations, including moving files (folder) also need to go through confirmation. So, in Vista, we want to change the Hosts file or Lmhosts denied access problems will appear.
The reason : As the editor Hosts, Lmhosts file when Notepad is run as a normal user, so do not have permission to save Hosts, Lmhosts file.
Solution : First Run Notepad as an administrator, and then use the menu to open the Hosts "Open", Lmhosts files can be properly preserved.
Vista, many programs will encounter such a problem encountered an error when try to run a program as an administrator might be helpful.

Reproduced in: https: //www.cnblogs.com/henryhappier/archive/2010/04/12/1710480.html

Guess you like

Origin blog.csdn.net/weixin_34209406/article/details/93537508