Skip to content

Instantly share code, notes, and snippets.

View ASSahasranamam's full-sized avatar
🔬
Computational Oncology & Bioinformatics

Adithya Subramanian Sahasranamam ASSahasranamam

🔬
Computational Oncology & Bioinformatics
View GitHub Profile
@ASSahasranamam
ASSahasranamam / fix-homebrew-owner-perms.sh
Created April 20, 2021 06:49 — forked from stefanschmidt/fix-homebrew-owner-perms.sh
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 {} +