Re: GRANT CONNECT ON DATABASE

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Edwin UY <edwin(dot)uy(at)gmail(dot)com>
Cc: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: GRANT CONNECT ON DATABASE
Date: 2024-06-10 00:27:16
Message-ID: CAKFQuwaJM51pW5a6HfarX1M-sH1bokX3KYRamKB5yCJdt3mFFw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Sunday, June 9, 2024, Edwin UY <edwin(dot)uy(at)gmail(dot)com> wrote:
>
>
> A role was created as below:
> CREATE ROLE [blah] WITH NOLOGIN
>
>
As already noted this means “do not allow to login”.

ALTER ROLE [blah] WITH ENCRYPTED PASSWORD 'blahpassword' ;
>

If you want them to use a password this is also required in addition to the
ability to login.

> GRANT CONNECT ON DATABASE [blahdb] TO [blahuser] ;
>

Redundant with the default connect grant given to the public pseudo-role.

David J.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Edwin UY 2024-06-10 00:27:29 Re: GRANT CONNECT ON DATABASE
Previous Message soroush jurat 2024-06-10 00:14:39 Re: GRANT CONNECT ON DATABASE