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

vagrant up (hostsupdater) fails with permission denied on /etc/hosts #812

Closed
shankie-codes opened this issue Jan 19, 2016 · 5 comments
Closed

Comments

@shankie-codes
Copy link

Obviously this isn't a universal problem, but on my machine, running vagrant up (as part of the 'getting started' instructions in the readme) fails with the following message:

/Users/shankie/.vagrant.d/gems/gems/vagrant-hostsupdater-1.0.1/lib/vagrant-hostsupdater/HostsUpdater.rb:85:in 'initialize': Permission denied @ rb_sysopen - /etc/hosts (Errno::EACCES)

I've managed to work around it for now by:

sudo chmod o+w /etc/hosts

... but this seems like a Bad Idea!

Any thoughts anyone?

@shankie-codes shankie-codes changed the title vagrant up fails with permission denied on /etc/hosts vagrant up (hostsupdater) fails with permission denied on /etc/hosts Jan 19, 2016
@shankie-codes
Copy link
Author

I've worked around this in the meantime by adding myself to the wheel group and then making /etc/hosts group-writable.

Not ideal but works for now!

@standoutsites
Copy link

I'm having the same problem. Are there more people having this problem? So the suggested workaround is the only fix for now?

@jb510
Copy link
Contributor

jb510 commented Jan 27, 2016

same issue. see: agiledivider/vagrant-hostsupdater#92

@jeremyfelt
Copy link
Member

Thanks for raising the issue. I think we're going to want to move forward with supporting more than one hosts updating plugin. I'm going to close this out, but follow #606 and #815

@lock
Copy link

lock bot commented Feb 23, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants