guumaster / hostctl

Your dev tool to manage /etc/hosts like a pro!
http://guumaster.github.io/hostctl
MIT License
1.04k stars 45 forks source link

v1.1.1 - Access Denied on Windows 10 while running as administrator #77

Closed Strandedpirate closed 2 years ago

Strandedpirate commented 2 years ago

Running a command prompt as admin and getting access denied error.

Using latest v1.1.1

My local account is in the Administrators group.

This is due to running your utility from a non-C drive; which fails. If I run it from the c:\ drive it succeeds. This is long standing bug in the GO language related to paths that is causing this. I posted about this a long time ago on another open source project. If I can find that post I'll add it here.

image

Strandedpirate commented 2 years ago

Debugged with Visual Studio Code and the root cause of the access denied error was because Norton Antivirus detecting this program as "suspicious" and blocking it silently. oof.

Simply excluding it from Norton's block list did the trick.

guumaster commented 2 years ago

thanks for reporting this anyway.