Skip to content
Snippets Groups Projects
Commit 0327a00a authored by Adrien Luxey's avatar Adrien Luxey Committed by Richard van der Hoff
Browse files

Update postgres.md (#6234)

Added database owner authentication with `sudo` when `su` does not work
parent 22a9f750
No related branches found
No related tags found
No related merge requests found
......@@ -27,17 +27,21 @@ connect to a postgres database.
## Set up database
Assuming your PostgreSQL database user is called `postgres`, create a
user `synapse_user` with:
Assuming your PostgreSQL database user is called `postgres`, first authenticate as the database user with:
su - postgres
# Or, if your system uses sudo to get administrative rights
sudo -u postgres bash
Then, create a user ``synapse_user`` with:
createuser --pwprompt synapse_user
Before you can authenticate with the `synapse_user`, you must create a
database that it can access. To create a database, first connect to the
database with your database user:
su - postgres
su - postgres # Or: sudo -u postgres bash
psql
and then run:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment