Install Brew for Multiple Users

MacOS Mojave

Open System Preferences and select Users & Groups. Unlock this screen and press the lower left +. Select the account type Group and name it brew. After creating this group add users.

Change group of installation directory to “brew”

sudo chgrp -R brew $(brew --prefix)/*

Give “brew” group write access

sudo chmod -R g+w $(brew --prefix)/*