guumaster / hostctl

Your dev tool to manage /etc/hosts like a pro!

Home Page:http://guumaster.github.io/hostctl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Strandedpirate opened this issue · comments

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

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.

thanks for reporting this anyway.