Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fix brew permission from another account in macOS
# First create a user group and add users who are going to use shared brew
# User group : brew-usergroup
echo $(brew --prefix)
echo $(groups $(whoami))
sudo dseditgroup -o edit -a $(whoami) -t user brew-usergroup
sudo chgrp -R brew-usergroup $(brew --prefix)/*
sudo chmod -R g+rwX $(brew --prefix)/*
ls -lah $(brew --prefix)
# Optional
sudo chown -R $(whoami) /usr/local/share/man/man7
sudo chown -R $(whoami):wheel /usr/local
sudo chown -R $(whoami):wheel /usr/local/Cellar
sudo chown -R $(whoami) $(brew --prefix)/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.