title: Can't start Homebrew PostgreSQL install on Mac OS X - "Permission Denied"
body: <p>I have a Postgresql installed via Homebrew and after a crash I can not start server anymore.. </p>
  
  <p>if I do </p>
  
  <pre><code> $ pg_ctl start 
  </code></pre>
  
  <p>I get </p>
  
  <pre><code>pg_ctl: no database directory specified and environment variable PGDATA unset
  </code></pre>
  
  <p>If I do</p>
  
  <pre><code>$ pg_ctl -D /Library/PostgreSQL/data start
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>pg_ctl: could not open PID file "/Library/PostgreSQL/data/postmaster.pid": Permission denied
  </code></pre>
  
  <p>Everything was working just fine and then.. out of the blue, this. </p>
  
  <p>The data folder above has permissions set at "Everything" for postgres user and "None" for everyone..</p>
  
  <p>Path looks fine  (in my ~/.bash_profile)</p>
  
  <pre><code>export PATH=/usr/local/bin:$PATH
  </code></pre>