Forked from stefanschmidt/fix-homebrew-owner-perms.sh
Last active
April 17, 2018 23:37
-
-
Save dennyweiss/3f85f119ae935c14a0fdd9b6998e88c8 to your computer and use it in GitHub Desktop.
Fix ownership and permissions of a multi-user Homebrew installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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