Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Upgrading to Mountain Lion from Snow Leopard has affected a lot of the software I use. While trying to update and install some Ruby gems on my system as well as other software (using Homebrew), I got this error message

Warning: The /usr/local directory is not writable.
Even if this directory was writable when you installed Homebrew, other
software may change permissions on this directory. Some versions of the
"InstantOn" component of Airfoil are known to do this.

You should probably change the ownership and permissions of /usr/local
back to your user account.

Does anyone know how I can change ownership and permissions of /usr/local back to my user account?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Homebrew tells you what to do:

You should probably change the ownership and permissions of /usr/local back to your user account.

For that we'll use chown and (recursively) set your user as the owner for /usr/local:

sudo chown -R $(whoami) /usr/local

This GitHub Gist does the same and a little more, which may or may not be required to get a fully working Homebrew again: Fix permissions on /usr/local for Homebrew

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.