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 changing hostname #140

Closed
braampje opened this issue Jul 21, 2017 · 2 comments
Closed

permission denied changing hostname #140

braampje opened this issue Jul 21, 2017 · 2 comments

Comments

@braampje
Copy link

When I try to give the virtual machine a hostname my vagrant crashes, saying permission denied. I had to manually change the permissions of C:\Windows\System32\drivers\etc\hosts to writable before it worked. I did it for all group and user names since I was not sure which one I needed. Do you have an easier way of doing this? thought you should at least now this.

@Graloth
Copy link

Graloth commented Aug 3, 2017

You only need to do that for the used you are trying to run vagrant under.
As far as I've been able to find out, this is the only solution to the issue.

This is potentially a dublicate of #89 and/or #40

@cgsmith
Copy link
Collaborator

cgsmith commented Mar 30, 2018

The documentation talks about using UAC here: https://github.com/cogitatio/vagrant-hostsupdater#windows-uac-prompt

This should get around the issue.

@cgsmith cgsmith closed this as completed Mar 30, 2018
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

3 participants