Re: Guidance on user deletion

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Guidance on user deletion
Дата
Msg-id CAKFQuwbzfRCo3FhAK+ae51gV65N5judL7x7TnURY4UZo9r23Jg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Guidance on user deletion  (Ron Johnson <ronljohnsonjr@gmail.com>)
Список pgsql-admin


On Sunday, May 12, 2024, Ron Johnson <ronljohnsonjr@gmail.com> wrote:
On Sun, May 12, 2024 at 6:56 AM vrms <vrms@netcologne.de> wrote:

The five account systems I've had experience with (OpenVMS, Linux, Active Directory, SQL Server, Postgresql) all have the ability to expire users, and to unexpire them if the person ever returns.
how do you practically expire an account in postgres?

ALTER ROLE ... VALID UNTIL 'timestamp';
 

I suppose, but that only expires the password, not invalidates the role.  There isn’t a concept of “invalid role”.  If you want to prevent a role from being used to login remove the login attribute.

David J.
 

В списке pgsql-admin по дате отправления:

Предыдущее
От: Wasim Devale
Дата:
Сообщение: Postgis
Следующее
От: Edwin UY
Дата:
Сообщение: ora2pg partitioned table DDL 'not working'