From: Rui DeSousa <rui@crazybean.net>
To: Rajin Raj <rajin.raj@opsveda.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: Deactivate/disable User id in Postgres
Date: Mon, 4 May 2020 10:45:49 -0400
Message-ID: <C7E7153B-3CE6-4B58-8C75-5B2FEAAC014B@crazybean.net> (raw)
In-Reply-To: <CAOasRJb7gKDZMjfVAmh2Bg4hGfm_=qoE8LvJimhY7mATbN=pmA@mail.gmail.com>
References: <CAOasRJb7gKDZMjfVAmh2Bg4hGfm_=qoE8LvJimhY7mATbN=pmA@mail.gmail.com>
> On May 4, 2020, at 7:29 AM, Rajin Raj <rajin.raj@opsveda.com> wrote:
>
> Hi,
>
> Is there any option to deactivate/disable a user id in Postgres?
> I can think of below two options,
>
> ALTER USER <user_id> WITH CONNECTION LIMIT 0;
> ALTER USER <user_id> WITH NOLOGIN
>
> Is there any better approach?
>
> Regards,
> Rajin
Using external authentication is an option too. i.e. using LDAP; disabling the account in LDAP means the user cannot login.=
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: rui@crazybean.net, rajin.raj@opsveda.com, pgsql-admin@lists.postgresql.org
Subject: Re: Deactivate/disable User id in Postgres
In-Reply-To: <C7E7153B-3CE6-4B58-8C75-5B2FEAAC014B@crazybean.net>
* 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