Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"SAVE" does not work #7

Open
scottlerch opened this issue Oct 26, 2016 · 4 comments
Open

"SAVE" does not work #7

scottlerch opened this issue Oct 26, 2016 · 4 comments
Labels

Comments

@scottlerch
Copy link
Owner

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

@scottlerch scottlerch added the bug label Oct 26, 2016
@ricounet67
Copy link

I seems that the modifications are saved even if you have the errot message

@scottlerch
Copy link
Owner Author

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:

image

image

@tgolla
Copy link

tgolla commented Mar 28, 2017

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

@AlainBeckerCPE
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants