HostsFileEditor
HostsFileEditor copied to clipboard
"SAVE" does not work
Although i ran the tool "as administrator" i cannot save my changes. I always get the error: "Access to c:\Windows.....\hosts was denied". What can i do?
Migrated from CodePlex Id #12 | Release: None | Updated: Jan 28 at 7:17 AM by carlosmunoz | Created: Jul 24, 2014 at 1:25 AM by robertheine
I seems that the modifications are saved even if you have the errot message
If the save was successful but you still got that error then it means it couldn't reset the file attributes which it only attempts to modify if the file was "Read-only". What are the attributes and permissions on C:\Windows\System32\drivers\etc\hosts? This is what I have:
I'm having the same issue only the modifications do not save. It's definitely a permissions issue but everything I've tried to grant access does not work. By any chance do you look at the folder read only setting? Ref: https://support.microsoft.com/en-us/help/326549/you-cannot-view-or-change-the-read-only-or-the-system-attributes-of-folders-in-windows-server-2003,-in-windows-xp,-in-windows-vista-or-in-windows-7
Same here, and seems related to an antivirus/security software (Kaspersky Endpoint Security) denying modifications to the %windir%\system32\drivers\*.*
Can't certify it's the cause of the issue for me, as I'm not allowed to change the configuration, nor to whitelist HostsFileEditor, but it is very likely.
For anyone with the same product, setting is to be found at the end of the following click-path (translated) : Configuration > Advanced protection > Intrusion prevention > Operating System > System Files
Same problem is likely to occur with many other security software, as modifying the hosts file is a widely-used technique for miscelanous malicious intents, and is therefore considered a malware behaviour pattern.
Don't know wether signing the software could whitelist it to some security software. I know it's not easy to handle in FOSS development...