I installed homebrew using my other user account (which I use during work), but it is impossible to install software from my newly created personal account:

$ brew install unrar
Error: Cannot write to /usr/local/Cellar

A ls -dl /usr/local/Cellar/ shows that the directory is owned by my other user account.

How do I configure homebrew to allow multiple users to install software?

link|improve this question

59% accept rate
feedback

3 Answers

up vote 0 down vote accepted

Here's my workaround:

su - myother_user_account -c "brew install ..."
link|improve this answer
feedback

On the homebrew wiki, it mentions that you can install it anywere, try having local installations for each user.

link|improve this answer
I don't want that, actually. I want the software to go to a common place irrespective of who installed it. – Sridhar Ratnakumar Jun 22 '11 at 3:36
I've tried this and wish I hadn't as you get messed up user permissions – MatthewFord Jul 12 '11 at 11:36
feedback

set umaskfor each user first. (.basrc or .profile or .bash_profile)

umask 0002 # group write permition

then give group write permit ion to /usr/localrecursively:

sudo chmod -R g+w /usr/local/

then change owner to staff

sudo chgrp -R staff /usr/local

now each user who is in staff group can use brew install and other brew stuff... Mostly every user is in that group.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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