title: sudo chown `whoami` does not affect homebrew's abilty to write to /usr/local
body: <p>I've tried all of:</p>
  
  <pre><code>sudo chown -R $USER /usr/local
  sudo chown -R :admin /usr/local
  sudo chown -R `whoami` /usr/local
  sudo chmod -R 777 /usr/local
  sudo find /usr/local -perm -200 -exec chmod g+w '{}' \+
  </code></pre>
  
  <p>And still /usr/local seems to be unwriteable to homebrew installs. For example:</p>
  
  <pre><code>/usr/local master  
  ❯ brew update
  Already up-to-date.
  
  /usr/local master  
  ❯ brew install fontconfig
  ==&gt; Downloading https://homebrew.bintray.com/bottles/fontconfig-2.11.1.yosemite.
  ######################################################################## 100.0%
  ==&gt; Pouring fontconfig-2.11.1.yosemite.bottle.3.tar.gz
  Error: Permission denied - /usr/local/etc/fonts/conf.d/10-scale-bitmap-fonts.conf
  </code></pre>
  
  <p>I am tearing my hair out searching forums and like-questions and finding no resolution to this. I even tried different shells, such is the degree of my frustration. Especially given the permissions:</p>
  
  <pre><code>❯ ls -lad /usr/local/etc/fonts/conf.d/10-scale-bitmap-fonts.conf
  -rwxrwxrwx@ 1 centzon  admin   1.9K May  5 14:33 /usr/local/etc/fonts/conf.d/10-scale-bitmap-fonts.conf
  </code></pre>
  
  <p>The accepted answer here <a href="https://stackoverflow.com/questions/17397544/brew-install-permission-denied-after-chown-r-whoami">brew install - permission denied (after chown -R `whoami` )</a> did not work for me on Yosemite 10.10.3</p>