Create PostgreSQL Database without root privilege
<p>Currently, I use</p>

<pre><code>$ sudo service postgresql start    
</code></pre>

<p>to start the PostgreSQL server and </p>

<pre><code>$ sudo -u postgres createdb testdb --owner ownername
</code></pre>

<p>to create a database. However, these commands need root privilege. How can I do these without root privilege/sudo on Linux (Ubuntu)?</p>