Skip to content

Instantly share code, notes, and snippets.

@straightjacket
Forked from jaibeee/brew-perms.sh
Created April 6, 2017 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save straightjacket/6a5484b1de2a733bf40b7b07f449262f to your computer and use it in GitHub Desktop.
Save straightjacket/6a5484b1de2a733bf40b7b07f449262f 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
chgrp -R admin /usr/local
chmod -R g+w /usr/local
# allow admins to homebrew's local cache of formulae and source files
chgrp -R admin /Library/Caches/Homebrew
chmod -R g+w /Library/Caches/Homebrew
# if you are using cask then allow admins to manager cask install too
chgrp -R admin /opt/homebrew-cask
chmod -R g+w /opt/homebrew-cask
@straightjacket
Copy link
Author

I forked this from https://gist.github.com/jaibeee because it's a cool tip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment