Skip to content

Instantly share code, notes, and snippets.

@stefanschmidt
Created April 12, 2016 21:19
Show Gist options
  • Select an option

  • Save stefanschmidt/047001373d1defc90b6bdd7820e92cf7 to your computer and use it in GitHub Desktop.

Select an option

Save stefanschmidt/047001373d1defc90b6bdd7820e92cf7 to your computer and use it in GitHub Desktop.

Revisions

  1. stefanschmidt created this gist Apr 12, 2016.
    8 changes: 8 additions & 0 deletions fix-homebrew-owner-perms.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # 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 {} +