From 6039b0eb13d71b83456d2ac283c4f64d7883eaf0 Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 15 Nov 2023 17:54:02 +0000 Subject: [PATCH] docs: create sysadmin/Linux/PostgreSQL/create-user --- sysadmin/Linux/PostgreSQL/create-user.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 sysadmin/Linux/PostgreSQL/create-user.md diff --git a/sysadmin/Linux/PostgreSQL/create-user.md b/sysadmin/Linux/PostgreSQL/create-user.md new file mode 100644 index 0000000..5c8021a --- /dev/null +++ b/sysadmin/Linux/PostgreSQL/create-user.md @@ -0,0 +1,16 @@ +--- +title: Создание пользователя с правами на базы +description: +published: true +date: 2023-11-15T17:53:56.246Z +tags: +editor: markdown +dateCreated: 2023-11-15T17:53:56.246Z +--- + +``` +CREATE USER schema_auth WITH PASSWORD ‘postgres’; +GRANT ALL PRIVILEGES ON DATABASE “mk_objects” to schema_auth; +GRANT ALL PRIVILEGES ON DATABASE “smvu2” to schema_auth; +ALTER ROLE schema_auth WITH Superuser; +``` \ No newline at end of file