From 76e26bc132ff533589a4da285af544e5f15f7916 Mon Sep 17 00:00:00 2001
From: Martin Goik <goik@hdm-stuttgart.de>
Date: Mon, 25 Feb 2019 19:28:02 +0100
Subject: [PATCH] Postgresql config

---
 Doc/Sda1/prerequisites.xml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Doc/Sda1/prerequisites.xml b/Doc/Sda1/prerequisites.xml
index 8908ad097..979560519 100644
--- a/Doc/Sda1/prerequisites.xml
+++ b/Doc/Sda1/prerequisites.xml
@@ -213,9 +213,16 @@
             linkends="sda1_fig_postgresqlInstallUserPW-1"
             xml:id="sda1_fig_postgresqlInstallUserPW-1-co"/>
 
+#&gt; su - postgres -c "createuser --interactive"
+Enter name of role to add: hdmuser
+Shall the new role be a superuser? (y/n) n
+Shall the new role be allowed to create databases? (y/n) n
+Shall the new role be allowed to create more new roles? (y/n) n
+
 su - postgres -c "PGPASSWORD=XYZ createdb --owner hdmuser hdm" <co
             linkends="sda1_fig_postgresqlInstallUserPW-2"
             xml:id="sda1_fig_postgresqlInstallUserPW-2-co"/>
+alter role hdmuser WITH PASSWORD 'XYZ';
 
 PGPASSWORD=XYZ psql -h localhost --username=hdmuser -d hdm <co
             linkends="sda1_fig_postgresqlInstallUserPW-3"
-- 
GitLab