Skip to content

Instantly share code, notes, and snippets.

@davidjenni
Created April 6, 2018 00:59
Show Gist options
  • Save davidjenni/f8208bcaeb684ba96e44bc998603e78e to your computer and use it in GitHub Desktop.
Save davidjenni/f8208bcaeb684ba96e44bc998603e78e to your computer and use it in GitHub Desktop.
HomeBrew: multi-user config change to allow all users in staff group to call 'brew'
#!/bin/sh
# Configure homebrew permissions to allow multiple users to call 'brew'.
# Any user from the staff group will be able to manage the homebrew and cask installation on the machine.
# in newer macOS version (>= HighSierra ?), changing perms on /usr/local itself is rejected
sudo chgrp -R staff /usr/local/*
sudo chmod -R g+w /usr/local/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment