From 81d28000451c78ac0d4dced5e180256f84351958 Mon Sep 17 00:00:00 2001 From: emorino Date: Tue, 2 Feb 2021 10:30:17 +0100 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20sur=20la=20cr=C3=A9ation=20?= =?UTF-8?q?d'user=20en=20RO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoPostgreSQL.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HowtoPostgreSQL.md b/HowtoPostgreSQL.md index c478e38a..7341ca8c 100644 --- a/HowtoPostgreSQL.md +++ b/HowtoPostgreSQL.md @@ -339,10 +339,13 @@ $ createuser -P Il faut ensuite ajuster les droits pour cet utilisateur sur la ou les bases : +**On prend exemple sur la base postgres, mais il faudra vous connecter sur la base concerné avec `psql -d ` avec l'user unix postgres** + ~~~ postgres=# GRANT CONNECT ON DATABASE TO ; postgres=# GRANT USAGE ON SCHEMA public TO ; postgres=# GRANT SELECT ON ALL TABLES IN SCHEMA public TO ; +postgres=# ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO ; ~~~