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

Gas Mask sets ACL on /etc/hosts; breaks other tools like vagrant #129

Open
johnkeates opened this issue Jun 29, 2017 · 4 comments
Open

Gas Mask sets ACL on /etc/hosts; breaks other tools like vagrant #129

johnkeates opened this issue Jun 29, 2017 · 4 comments

Comments

@johnkeates
Copy link

By using Gas Mask, an ACL is set on /etc/hosts for the current user that started Gas Mask. This causes nobody else to be able to write to /etc/hosts, effectively locking out any/everything else.

People using vagrant and plugins to automatically add/remove hosts via vagrant-hostupdater, vagrant-hostmanager and other types of plugins get crashes because the system can't use sudo anymore to add/remove hosts entries. Removing the ACL fixes this, but every time Gas Mask is used, the ACL gets set again.

Basically, I've been copy/pasting this line forever for people that report a bug with their tooling when in fact it's the ACL that is the problem:

Check with ls -le /etc/hosts and delete the ACL with sudo chmod -N /etc/hosts

Is there a way for Gas Mask to not set this ACL?

@metaColin
Copy link

Yep. Had to remove Gas Mask because of this very issue. Lovely program, but I can't rely on it so long as it locks up /etc/hosts. Please remedy this.

@surrealchemist
Copy link

surrealchemist commented Sep 21, 2017

Even an option to prompt for password to make changes would be better.
I've gone back to manual editing as well because I am always spinning up and shutting down vagrant VMs using the hosts updater plugin

@drawcard
Copy link

Every six months or so I find my self coming back to this issue after a long google search to try and trace the reason why Vagrant can't edit my hosts file :( Sucks that I have to uninstall Gas Mask to get it working.

@Leland
Copy link

Leland commented Sep 10, 2018

Bit me again :(

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

5 participants