+
+### Initialize a database with a password
+
+```bash
+echo "postgres" > /tmp/pwfile
+mkdir -p $HOME/.local/share/postgres/var/
+
+initdb -D $HOME/.local/share/postgres/var/ \
+ --username postgres --pwfile "/tmp/pwfile" \
+ --auth-local=password --auth-host=password
+
+rm /tmp/pwfile
+```