Skip to content

Instantly share code, notes, and snippets.

@mimukit
Last active January 13, 2022 11:06
Show Gist options
  • Save mimukit/5c4f44f61cfeb73018d1921e58d09514 to your computer and use it in GitHub Desktop.
Save mimukit/5c4f44f61cfeb73018d1921e58d09514 to your computer and use it in GitHub Desktop.
Fix homebrew permissions on macOS
sudo chown -R $(whoami) /usr/local/Cellar
sudo chown -R $(whoami) /usr/local/Homebrew
sudo chown -R $(whoami) /usr/local/var/homebrew
sudo chown -R $(whoami) ${HOME}/Library/Caches/Homebrew
sudo chown -R $(whoami) ${HOME}/Library/Logs/Homebrew
sudo chown -R $(whoami) /usr/local/etc
sudo chown -R $(whoami) /usr/local/opt
sudo chown -R $(whoami) /usr/local/bin
sudo chown -R $(whoami) /usr/local/var
sudo chown -R $(whoami) /usr/local/share/man/man1
sudo chown -R $(whoami) /opt/homebrew-cask
sudo chown -R $(whoami) /usr/local/share
sudo chown -R $(whoami) /usr/local/lib
sudo chown -R $(whoami) /usr/local/include
sudo chown -R $(whoami) /usr/local/Frameworks
sudo chown -R $(whoami) /usr/local/Caskroom
sudo chown -R $(whoami) /usr/local/share/zsh
sudo chown -R $(whoami) /usr/local/share/zsh/site-functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment