-
Notifications
You must be signed in to change notification settings - Fork 129
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
osx sudoers and the correct command to allow #50
Comments
Just add the following code to your shudders file (using the visudo command as indicated at the top of the file)
If you're also using NFS synced folders add this code as well (taken from the Vagrant docs)
|
I tried this, but no luck.
|
I just updated my answer with what I'm using now |
This works on my machine. @mbootsman is it working for you now? What OS are you running? |
@cgsmith Too bad it's not working for me. I'm using ubuntu 15.10. |
@mbootsman I will test this out this week to see what might need to be tweaked. I remember some post referencing |
Thanks for the update @lukasluecke I had recently been experiencing issues with the halt and removal of hosts file entries but your solution fixed that for me. I have updated my fork of the |
I am having the same issue,
...unless I use sudo. I have the following in my sudoers, but it doesn't seem to make a difference:
I am on OS X 10.8.5 (old, I know). Seems like I am being affected by the ruby Just wanted to post this in case it helps anyone, I have to stop using hostupdater because I don't want to use sudo for vagrant up. Cheers. |
That did it for me, but it's bizarre - as far as I know nothing's changed and this seemed to just suddenly stop working. |
What version of OSX were you on @zxaos? EDIT: nah, looks like that isn't a folder that is commonly protected. So who knows. Glad it worked for you, either way. |
I'm on El Capitan, but it's successfully worked on this version before. Additionally, I'm pretty sure the chmod command shouldn't fix it if it's SIP-related, because you can't modify SIP protected files, even with sudo (you have to reboot and turn SIP off to change them in any way). |
Same problem here and as sudden as others seem to mention. I'm on the latest OS X 10.11.2 (15C50). |
Well my original solution is still working fine for me, even on the latest OS X 10.11.3 Beta - did you already try that? (Run |
Hello lukaslueke the following works for me:
I did not need to change sudoers. |
Yeah this should work as well, but will allow any program you run to write to your hosts file which might be considered a security risk by some. |
I'm on OS X 10.11.4 and I was having problems with the procedure in the readme. If I add the snippet to the TOP of the sudoers file, hostsupdater still asks for a password. But when I added the snippet to the BOTTOM of the file, it worked as desired. I don't have the chops to discern why this is the case, but I think the readme should be updated once someone figures it out. Hopefully in the meantime anyone having trouble can try this out and see if it fixes the problem for them. |
System Version: OS X 10.11.6 |
I wanted to allow hosts updater to run without root password on osx. although this is not horrible to work around I feel like it could make it much easier to implement.
Another similar situation was the NFS shares requiring access to /etc/exports.. there was a solution by adding the command to the sudoers file and I have attempted to without success to create a similar solution for this.
Was there any information on what the command might consist of and has anyone else accomplished this in their own machine?
Example of sudoers setup script:
https://gist.github.com/GUI/2864683
The text was updated successfully, but these errors were encountered: