Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JayachandraA/ed53a5d33072f7d20d1a9ac06c5bbdab to your computer and use it in GitHub Desktop.
Save JayachandraA/ed53a5d33072f7d20d1a9ac06c5bbdab to your computer and use it in GitHub Desktop.
Fix ownership and permissions of a multi-user Homebrew installation
# fix owner of files and folders recursively
sudo chown -vR $(whoami) /usr/local /opt/homebrew-cask /Library/Caches/Homebrew
# fix read/write permission of files and folders recursively
chmod -vR ug+rw /usr/local /opt/homebrew-cask /Library/Caches/Homebrew
# fix execute permission of folders recursively
find /usr/local /opt/homebrew-cask /Library/Caches/Homebrew -type d -exec chmod -v ug+x {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment