Acces denied as admin on win10
thesecmaestro opened this issue · comments
hostctl set -p mdserver --from c:\script\hostctl\mdserver_hosts.txt
Using hosts file: C:\Windows\System32\Drivers\etc\hosts
Error: truncate C:\Windows\System32\Drivers\etc\hosts: Access is denied.
You need to run it as administrator. Same as linux, only admins have permission to edit hosts file.
Can you confirm it works if you run it as administrator?
Thanks for reporting the issue.
No it does not work, i ran it as administrator as the title of the bug stated. I got the truncate error while running as administrator
I've setup my windows and tested it. It wasn't working properly. I've made some fixes and now it should be fine. Try updating to version v0.5.0.
I'm closing this one. Please feel free to reopen if you find anything else.
Thanks! 🎉