Getting Permission Denied on the hosts file

608 views
Skip to first unread message

Patty O'Hara

unread,
Jan 5, 2016, 2:59:17 PM1/5/16
to Vagrant
Hello - Im trying to set up an enviroment on a Windows 10 host and am getting this error on vagrant up...

/.vagrant.d/gems/gems/vagrant-hostsupdater-1.0.1/lib/vagrant-hostsupdater/HostsUpdater.rb:85:in `initialize': Permission denied @ rb_sysopen - C:/Windows/system32/drivers/etc/hosts (Errno::EACCES)

I havent been able to find any solutions to this one. Any ideas?

Alvaro Miranda Aguilera

unread,
Jan 5, 2016, 11:44:41 PM1/5/16
to vagra...@googlegroups.com
Hello

The error mean your user doesn't have access to update that file.

Couple of options.

1. don't use the plugin host updater.

vagrant plugin list
vagrant plugin uninstall <name>

2. Make sure your user without elevating privileges have access to read write to:
C:/Windows/system32/drivers/etc/hosts 

Let me know if this helps.

Thanks
Alvaro.


--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/e4959953-9b3a-4d9a-8264-10aabc5a92fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages