Re: user privileges - Mailing list pgsql-general

From Laurenz Albe
Subject Re: user privileges
Date
Msg-id 3b2aa71592fc0de2bacda3373542976fd5ba61cf.camel@cybertec.at
Whole thread Raw
In response to user privileges  (Atul Kumar <akumar14871@gmail.com>)
List 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




pgsql-general by date:

Previous
From: Francisco Olarte
Date:
Subject: Re: replace inside regexp_replace
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: replace inside regexp_replace