Skip to content

Instantly share code, notes, and snippets.

@steshaw
Created June 3, 2014 22:31
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steshaw/56e627656d7292fa6ab9 to your computer and use it in GitHub Desktop.
Save steshaw/56e627656d7292fa6ab9 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# Adapted from http://blog.strug.de/2012/06/my-homebrew-multi-user-setup/
#
sudo dseditgroup -q -o create brew
sudo dseditgroup -o edit -a ${USER} -t user brew
sudo chgrp -R brew /usr/local # Change the group of homebrew installation directory.
sudo chmod -R g+w /usr/local # Allow group members to write inside this directory.
sudo chgrp -R brew /Library/Caches/Homebrew # Change the group of homebrew cache directory.
sudo chmod -R g+w /Library/Caches/Homebrew # Allow group members to write inside this directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment