Skip to content

Instantly share code, notes, and snippets.

@iwill
Forked from jaibeee/brew-perms.sh
Last active April 16, 2018 13:02
Show Gist options
  • Save iwill/23a24f504d1af35280ad419b03d667ee to your computer and use it in GitHub Desktop.
Save iwill/23a24f504d1af35280ad419b03d667ee 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 $(brew --prefix)/*
chmod -R g+w $(brew --prefix)/*
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment