Skip to content

Instantly share code, notes, and snippets.

@jpalala
Last active August 4, 2019 16:41
Show Gist options
  • Save jpalala/9f5489958ae2bb1d49404328202d0a9f to your computer and use it in GitHub Desktop.
Save jpalala/9f5489958ae2bb1d49404328202d0a9f to your computer and use it in GitHub Desktop.
Homebrew tricks - allow brew to be used by Multiple users on your mac

Brew asks me to do this: sudo chown -R $(whoami) /usr/local/Homebrew

I unfortunately have other users for development on my mac that need access to Homebrew dir to run stuff.

I find an aritcle https://medium.com/@energee/install-brew-for-multiple-users-65af2444df5c

So I create the group 'brew' in the user and groups preferences pane, MThen

  • sudo chgrp -R brew $(brew --prefix)/Homebrew

Or, if you think it's safe:

  • sudo chmod -R g+w $(brew --prefix)/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment