From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
---|---|
To: | Atul Kumar <akumar14871(at)gmail(dot)com>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: user privileges |
Date: | 2021-06-21 14:27:52 |
Message-ID: | 3b2aa71592fc0de2bacda3373542976fd5ba61cf.camel@cybertec.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, 2021-06-21 at 16:10 +0530, Atul Kumar wrote:
> My question can be silly but I need to ask that if a user is created
> without login privilege then what is the use of below command why
> don't postgres prompt error on it
>
> CREATE ROLE nolog_user WITH PASSWORD 'pass1';
>
> as the user is created with login privileges then what is the use such user ?
The role can be the owner of objects, or it can have members that
inherit privileges.
But setting a password is pointless on a role that cannot login.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
From | Date | Subject | |
---|---|---|---|
Next Message | hubert depesz lubaczewski | 2021-06-21 14:47:52 | Re: replace inside regexp_replace |
Previous Message | Francisco Olarte | 2021-06-21 14:08:49 | Re: replace inside regexp_replace |