Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Use the following commands to setup Hombrew as a standard user getting around needing sudo access for most packages.

Standard User Owned Brew

Use the following commands to setup Hombrew as a standard user getting around needing sudo access for most packages.

NOTE: This still requires an admin to install Homebrew initially. After the ownership change, the standard user can use Homebrew moving forward.

Setup Homebrew for a Standard User

curl -fsS 'https://raw.githubusercontent.com/Homebrew/install/master/install' | ruby

# Replace "USERNAME" with the username of your user:
sudo chown -R USERNAME $(brew --prefix)/*
chmod u+w $(brew --prefix)/*

Install Casks to Home Directory

To install applications with a non-admin account, you'll need to install them in the user's home application directory instead of the global applications directory. This won't require sudo access. Replace "USERNAME" below.

brew cask install myapp --appdir=/Users/USERNAME/Applications
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.