-
Notifications
You must be signed in to change notification settings - Fork 253
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
Comments
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. |
Even an option to prompt for password to make changes would be better. |
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. |
Bit me again :( |
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?
The text was updated successfully, but these errors were encountered: