I had just installed homebrew and afterwards I installed Laravel Valet.
I am now not able to run any sudo commands at all, and it basically broke my computer.
This is the errors I get when running sudo in terminal
>>> /etc/sudoers.d/brew: Alias `BREW' already defined near line 1 <<<
>>> /etc/sudoers.d/valet: Alias `VALET' already defined near line 1 <<<
sudo: parse error in /etc/sudoers.d/brew near line 1
sudo: no valid sudoers sources found, quitting
Any help appreciated
This is my sudoer for /etc/sudoers.d/brew
:
Cmnd_Alias BREW = /usr/local/bin/brew *
%admin ALL=(root) NOPASSWD: BREW
And this is my sudoer for /etc/sudoers.d/valet
:
Cmnd_Alias VALET = /usr/local/bin/valet *
%admin ALL=(root) NOPASSWD: VALET