Skip to content

Instantly share code, notes, and snippets.

@pedro-mass
Forked from jaibeee/brew-perms.sh
Last active October 3, 2019 19:18
Show Gist options
  • Save pedro-mass/5838a0baf328a47049826dae6ad1070f to your computer and use it in GitHub Desktop.
Save pedro-mass/5838a0baf328a47049826dae6ad1070f to your computer and use it in GitHub Desktop.
Configure homebrew permissions to allow multiple users on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
sudo chgrp -R admin $(brew --prefix)/*
sudo chmod -R g+w $(brew --prefix)/*
# everything brew is self-contained in `$(brew --prefix)/*` - so you're all set!
# I'd recommend creating a secondary group just for brew though, and adding your users to that group.
# Outdated but detailed steps here: https://medium.com/@leifhanack/homebrew-multi-user-setup-e10cb5849d59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment