docs: create sysadmin/Linux/PostgreSQL/create-user
This commit is contained in:
16
sysadmin/Linux/PostgreSQL/create-user.md
Normal file
16
sysadmin/Linux/PostgreSQL/create-user.md
Normal file
@@ -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;
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user