Skip to content

kubefwd cant save changings in hosts file #268

@pavasilev

Description

@pavasilev

Hello,thank you for the tool, but i can't use it on Windows 10.
I am currently using version 1.22.5 and I face the following issue:
When i am trying to port forward, system tells me that i dont have access to saving changings in the hosts file.
I checked all acceses and even give special access to file hosts in properties, but system continue to show this message.

INFO[08:56:31] Version 1.22.5
INFO[08:56:31] https://github.com/txn2/kubefwd
INFO[08:56:31]
INFO[08:56:31] Press [Ctrl-C] to stop forwarding.
INFO[08:56:31] 'cat /etc/hosts' to see all host entries.
INFO[08:56:31] Loaded hosts file C:\Windows\System32\Drivers\etc\hosts
INFO[08:56:31] HostFile management: Original hosts backup already exists at C:\Users\pvasilev/hosts.original
INFO[08:56:31] Successfully connected context: default-system
INFO[08:56:31] Port-Forward:       127.1.27.1 license-central:8080 to pod license-central-84487997fb-2pk4w:17103
INFO[08:56:31] Port-Forward:       127.1.27.2 control-provider-central:8080 to pod control-provider-central-cd7555757-945xq:30009
ERRO[08:56:31] Error saving hosts fileopen C:\Windows\System32\Drivers\etc\hosts: Access is denied.
ERRO[08:56:31] Error saving hosts fileopen C:\Windows\System32\Drivers\etc\hosts: Access is denied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions