phpmon icon indicating copy to clipboard operation
phpmon copied to clipboard

Brew has not been added to sudoers.d

Open MattRogowski opened this issue 3 years ago • 1 comments

I keep getting this, despite having run sudo valet trust in the past, and running it again now. I have also run sudo chmod +r /private/etc/sudoers.d/brew to no avail. Is there anything else to try?

MacOS 12.4, M1 Max, Valet 3.1.9

I've found https://github.com/nicoverbruggen/phpmon/issues/23 from a year and a half ago, the issue still remains.

MattRogowski avatar Aug 09 '22 17:08 MattRogowski

Hi @MattRogowski!

What does your /private/etc/sudoers.d/brew file look like? On M1, it should reference /opt/homebrew/bin/brew, like this:

Cmnd_Alias BREW = /opt/homebrew/bin/brew *
%admin ALL=(root) NOPASSWD:SETENV: BREW

This can come up if you're running PHP Monitor natively for M1 while you have Homebrew running with Rosetta. In that case, you may want to try running PHP Monitor using Rosetta (please consult the FAQ for more info about that, under the section "I've got two Homebrew installations on my Apple Silicon Mac, can I choose which installation to use with PHP Monitor?").

nicoverbruggen avatar Aug 09 '22 17:08 nicoverbruggen