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

kubefwd cant save changings in hosts file #268

Open
pavasilev opened this issue Dec 20, 2023 · 4 comments
Open

kubefwd cant save changings in hosts file #268

pavasilev opened this issue Dec 20, 2023 · 4 comments

Comments

@pavasilev
Copy link

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.
@DenKn
Copy link

DenKn commented Dec 26, 2023

The same problem...

@roi007leaf
Copy link

same..

@SomeAkk
Copy link

SomeAkk commented Mar 11, 2024

@cjimti is any news? maybe need to assign "bug" lable fow that?
got same problem in win10 :c

@cjimti
Copy link
Member

cjimti commented Mar 11, 2024

Do any Windows developers want to submit a PR? I don't have easy access to a Windows machine at the moment. It has been working on Windows 10 for years, so something must have changed on the Windows OS.

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

No branches or pull requests

5 participants