pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Venkat jumbo <venkatpostgresql@gmail.com>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Change password
Date: Wed, 26 Feb 2020 01:16:02 -0500
Message-ID: <17319.1582697762@sss.pgh.pa.us> (raw)
In-Reply-To: <CAP=fS72CVB3QQK35iS9AX4+TaS_piz8QmR60kSC+6TxHAK5d=w@mail.gmail.com>
References: <CAP=fS72CVB3QQK35iS9AX4+TaS_piz8QmR60kSC+6TxHAK5d=w@mail.gmail.com>

Venkat jumbo <venkatpostgresql@gmail.com> writes:
> Can we force the user to changepassword every month /days. (passwordexpired
>  )
> Do we have this option in postgres-10 ?

Postgres doesn't do that directly, though there is a provision for
setting an expiration date on a password.  If you want rules like
that, you might look at using PAM auth and then coding the rules
with PAM modules.

FWIW, forced password changes are widely considered to be poor
security practice these days.  Before you bull ahead with this,
you might read a few experts, for example

https://www.ftc.gov/news-events/blogs/techftc/2016/03/time-rethink-mandatory-password-changes
https://www.sans.org/security-awareness-training/blog/time-password-expiration-die
https://www.extremetech.com/computing/292534-microsoft-says-forced-password-resets-dont-improve-secu...
https://www.schneier.com/blog/archives/2016/08/frequent_passwo.html

			regards, tom lane





view thread (2+ messages)

Message-ID: <17319.1582697762@sss.pgh.pa.us>
Permalink:  ../17319.1582697762@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17319.1582697762@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, venkatpostgresql@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Change password
  In-Reply-To: <17319.1582697762@sss.pgh.pa.us>

* 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