Closed antaflos closed 9 years ago
What is the umask of the root user on the guest system?
Vagrant Hosts updates /etc/hosts
in the following manner:
install -m 644 /tmp/hosts /etc/hosts
If the mode is coming out as 0600, check your root umask, as @adrienthebo suggested.
It seems running the hosts provisioner sets the file mode of /etc/hosts on the provisioned system to 0600, preventing other users on the system from reading the file.
I tested this using the following lines in the Vagrantfile:
Using vagrant-hosts 2.2.3 and vagrant 1.6.3 on Ubuntu 14.04, provisioning Ubuntu 12.04 VMs.