title: PostgreSQL "Illegal Group Name"
body: <p>I am trying to create a PostgreSQL database using this tutorial:
  <a href="http://tutorials.jumpstartlab.com/topics/environment/environment.html" rel="nofollow">http://tutorials.jumpstartlab.com/topics/environment/environment.html</a></p>
  
  <p>The Postgres section can be found 2/3 of the way down the page.
  After installing Homebrew and commanding <code>brew install postgresql</code></p>
  
  <p>we create a database by:</p>
  
  <pre><code>sudo mkdir -p /usr/local/pgsql/data
  sudo chown postgres:postgres /usr/local/pgsql/data
  sudo su postgres
  initdb -D /usr/local/pgsql/data
  createuser `whoami`
  </code></pre>
  
  <p>When I do <code>sudo chown postgres:postgres /usr/local/pgsql/data</code></p>
  
  <p>it returns the error </p>
  
  <pre><code>chown: postgres: illegal group name
  </code></pre>
  
  <p>Which is because, as I understand, I haven't created a user or group. Is there a simple, one-line command I can do to amend this, without going through an entirely different tutorial? Did this tutorial forget something?</p>