sergeycherepanov / homebrew-docker-virtualbox

Docker workaround for Ryzentosh (AMD based Hackintosh)
208 stars 19 forks source link

Problem with sudoers #2

Closed mromanuk closed 4 years ago

mromanuk commented 4 years ago

Hi, I followed along the tutorial, but this particular line is breaking sudo:

 %staff ALL=(ALL) NOPASSWD: $(brew --prefix docker-virtualbox)/bin/gobetween

$(brew --prefix docker-virtualbox)/bin/gobetween work on a terminal, though

mromanuk commented 4 years ago

Ok, followed this one https://gist.github.com/slykar/e92732be9bf81a71e08068245656d70e and did change to

%staff ALL=(ALL) NOPASSWD: /usr/local/opt/docker-virtualbox/bin/gobetween

and allowed /usr/local/opt/docker-virtualbox/bin/docker-machine-init in security settings (check the guide)

sergeycherepanov commented 4 years ago

Hi, @mromanuk Thanks for your notice!

If you execute a command from the readme the shell will substitute a proper path to your Homebrew directory.

Yes, you need to run docker-machine-init once manually, approve the permissions and terminate it by ctrl + c. Currently I don't know how to automate it.

sergeycherepanov commented 4 years ago

I added the initial step to the init script and readme

mromanuk commented 4 years ago

thank you!