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

Permission denied error #4

Open
Junaid-2004 opened this issue Jul 26, 2022 · 1 comment
Open

Permission denied error #4

Junaid-2004 opened this issue Jul 26, 2022 · 1 comment

Comments

@Junaid-2004
Copy link

with open(default_hoster, "r+") as hostfile:

PermissionError: [Errno 13] Permission denied: 'C:\Windows\System32\drivers\etc\hosts'

Can you please help me solve this error. I tried to run using administrative privileges but still got the error.

@Kalebu
Copy link
Owner

Kalebu commented Aug 31, 2022

Hi @Junaid-2004

Here is how to fix it https://stackoverflow.com/questions/19672352/how-to-run-script-with-elevated-privilege-on-windows

I guess we should incorporate it into the main script, you can try if it works and then submit a pull request so we can merge it into the main script.

Let me know if it works

Best regards
Kalebu

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

2 participants