Skip to content

Instantly share code, notes, and snippets.

@evansthompson
Forked from jaibeee/brew-perms.sh
Last active March 21, 2018 20:40
Show Gist options
  • Select an option

  • Save evansthompson/4399b7940343497df1f8047e5b8a12af to your computer and use it in GitHub Desktop.

Select an option

Save evansthompson/4399b7940343497df1f8047e5b8a12af to your computer and use it in GitHub Desktop.

Revisions

  1. evansthompson revised this gist Mar 21, 2018. 1 changed file with 10 additions and 4 deletions.
    14 changes: 10 additions & 4 deletions brew-perms.sh
    Original file line number Diff line number Diff line change
    @@ -7,9 +7,15 @@ chgrp -R admin /usr/local/*
    chmod -R g+w /usr/local/*

    # allow admins to homebrew's local cache of formulae and source files
    chgrp -R admin /Library/Caches/Homebrew
    chmod -R g+w /Library/Caches/Homebrew
    if [ -e /Library/Caches/Homebrew ]; then
    chgrp -R admin /Library/Caches/Homebrew
    chmod -R g+w /Library/Caches/Homebrew
    else
    mkdir /Library/Caches/Homebrew
    chgrp -R admin /Library/Caches/Homebrew
    chmod -R g+w /Library/Caches/Homebrew
    fi

    # if you are using cask then allow admins to manager cask install too
    chgrp -R admin /opt/homebrew-cask
    chmod -R g+w /opt/homebrew-cask
    # chgrp -R admin /opt/homebrew-cask
    # chmod -R g+w /opt/homebrew-cask
  2. evansthompson revised this gist Mar 21, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions brew-perms.sh
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,8 @@
    # Any user from the admin group will be able to manage the homebrew and cask installation on the machine.

    # allow admins to manage homebrew's local install directory
    chgrp -R admin /usr/local
    chmod -R g+w /usr/local
    chgrp -R admin /usr/local/*
    chmod -R g+w /usr/local/*

    # allow admins to homebrew's local cache of formulae and source files
    chgrp -R admin /Library/Caches/Homebrew
  3. @jaibeee jaibeee revised this gist Aug 29, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion brew-perms.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    #!/bin/sh
    # Configure homebrew permissions to allow multiple users.
    # Configure homebrew permissions to allow multiple users on MAC OSX.
    # Any user from the admin group will be able to manage the homebrew and cask installation on the machine.

    # allow admins to manage homebrew's local install directory
  4. @jaibeee jaibeee created this gist Aug 29, 2015.
    15 changes: 15 additions & 0 deletions brew-perms.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #!/bin/sh
    # Configure homebrew permissions to allow multiple users.
    # Any user from the admin group will be able to manage the homebrew and cask installation on the machine.

    # allow admins to manage homebrew's local install directory
    chgrp -R admin /usr/local
    chmod -R g+w /usr/local

    # allow admins to homebrew's local cache of formulae and source files
    chgrp -R admin /Library/Caches/Homebrew
    chmod -R g+w /Library/Caches/Homebrew

    # if you are using cask then allow admins to manager cask install too
    chgrp -R admin /opt/homebrew-cask
    chmod -R g+w /opt/homebrew-cask