Re: [homebrew] What's correct permissions?
- From:
- Terin Stock
- Date:
- 2011-09-09 @ 07:01
sudo isn't needed for installing with homebrew. The documentation gives
the example "you didn't install textmate with sudo, why would you need it
for xyzpackage".
If you're installing code that isn't part of homebrew, my best suggestion
would be to make a formula for it, or use `brew diy`
As for permissions, this is what I have (on Snow Leopard):
drwxrwxr-x 20 root staff 680 Aug 25 13:07 /usr/local
drwxr-xr-x 285 terin staff 9690 Sep 4 19:55 /usr/local/bin
drwxr-xr-x 7 terin staff 238 Aug 25 13:05 /usr/local/Library
drwxr-xr-x 7 terin staff 238 Sep 4 19:47 /usr/local/Library/Contributions
drwxr-xr-x 17 terin staff 578 Aug 27 15:47
/usr/local/Library/Contributions/examples
--
#Terin Stock
On Friday, September 9, 2011 at 2:48 AM, Bill Moseley wrote:
> Could someone explain how permissions should work with brew?
>
> I've been using brew for a few months now. My account is an admin
account and I've never needed sudo.
>
> I ran it today and it complained about a number of directories that were
world-writable. From my history just now I did this:
>
> 1508 2011-09-09 08:50:01: sudo chmod 755 /usr/local/bin
> 1511 2011-09-09 08:50:24: sudo chmod 755 /usr/local
> 1515 2011-09-09 08:52:09: sudo chmod 755
/usr/local/Library/Contributions/examples
> 1517 2011-09-09 08:52:32: sudo chmod 755 /usr/local/Library/Contributions
> 1527 2011-09-09 09:06:26: sudo chmod 755 /usr/local/Library
>
> Now, brew complain that the directories are not writable.
>
> What permissions should those directories have?
>
> How is it suppose to work? Normally, I would download, configure, and
make as a normal user and sudo make install. Is sudo not used?
>
> Thanks,
>
>
>
> --
> Bill Moseley
> moseley@hank.org (mailto:moseley@hank.org)