From: David G. Johnston <david.g.johnston@gmail.com>
To: Edwin UY <edwin.uy@gmail.com>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: GRANT CONNECT ON DATABASE
Date: Sun, 9 Jun 2024 17:27:16 -0700
Message-ID: <CAKFQuwaJM51pW5a6HfarX1M-sH1bokX3KYRamKB5yCJdt3mFFw@mail.gmail.com> (raw)
In-Reply-To: <CA+wokJ8-z3sXJbrWHoxEVa2dV2Qsp2OyqyzdJBa3rvhWOEyXOg@mail.gmail.com>
References: <CA+wokJ8-z3sXJbrWHoxEVa2dV2Qsp2OyqyzdJBa3rvhWOEyXOg@mail.gmail.com>
On Sunday, June 9, 2024, Edwin UY <edwin.uy@gmail.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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: david.g.johnston@gmail.com, edwin.uy@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: GRANT CONNECT ON DATABASE
In-Reply-To: <CAKFQuwaJM51pW5a6HfarX1M-sH1bokX3KYRamKB5yCJdt3mFFw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox