From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Atul Kumar <akumar14871@gmail.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: user privileges
Date: Mon, 21 Jun 2021 16:27:52 +0200
Message-ID: <3b2aa71592fc0de2bacda3373542976fd5ba61cf.camel@cybertec.at> (raw)
In-Reply-To: <CA+ONtZ6XTcVg0k-4mNQ5gFqxx6-BWABoTRKpDvcwuTU4K-3x_A@mail.gmail.com>
References: <CA+ONtZ6XTcVg0k-4mNQ5gFqxx6-BWABoTRKpDvcwuTU4K-3x_A@mail.gmail.com>
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurenz.albe@cybertec.at, akumar14871@gmail.com
Subject: Re: user privileges
In-Reply-To: <3b2aa71592fc0de2bacda3373542976fd5ba61cf.camel@cybertec.at>
References: <CA+ONtZ6XTcVg0k-4mNQ5gFqxx6-BWABoTRKpDvcwuTU4K-3x_A@mail.gmail.com> <3b2aa71592fc0de2bacda3373542976fd5ba61cf.camel@cybertec.at>
* 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