Re: Deactivate/disable User id in Postgres

From: Holger Jakobs <holger(at)jakobs(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org,Ron <ronljohnsonjr(at)gmail(dot)com>
Subject: Re: Deactivate/disable User id in Postgres
Date: 2020-05-10 13:20:49
Message-ID: CD4728A7-3409-434C-95AA-BFE17A092110@jakobs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Won't help if authentication doesn't use passwords.

Am 10. Mai 2020 14:26:35 MESZ schrieb Ron <ronljohnsonjr(at)gmail(dot)com>:
>What about setting the password expiration to "now"?  That also would
>prevent the user from logging in.
>
>On 5/4/20 6:50 AM, John Scalia wrote:
>> Setting the role for NOLOGIN is probably your best route. You could
>also
>> revoke their privileges on any database object, if you were
>especially
>> concerned.
>> —
>> Jay
>>
>> Sent from my iPad
>>
>>> On May 4, 2020, at 7:30 AM, Rajin Raj <rajin(dot)raj(at)opsveda(dot)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 *
>
>--
>Angular momentum makes the world go 'round.

--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Rui DeSousa 2020-05-10 14:45:09 Re: Deactivate/disable User id in Postgres
Previous Message Ron 2020-05-10 12:26:35 Re: Deactivate/disable User id in Postgres