Re: Removing a user's password

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: Removing a user's password
Date: 2003-06-06 15:29:30
Message-ID: 200306061529.h56FTU226724@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Well, they are not actually removing it, just setting it to NULL, as
> > though a password was never assigned. We have a way for users to set
> > it, but no way for them to remove it.
>
> If they had a way to remove it, then they'd no longer be able to log in
> (assuming password auth is being used, and if it isn't then who cares?)
> I'm not seeing much of anything here except a foot-gun. It might look
> nice on the argument of symmetry, but as far as actual functionality
> goes, I think it'd be a waste of code space. How many people have
> actually asked for this, in all the years the password support has
> been there?

I assume there are some database that require passwords and some that
don't. I don't think we have had any requests for it. The only recent
request was someone asking for how to alter the password after using
'createuser', and we fixed that by modifying the manual page.

I added a doc mention of also allowing ALTER USER to remove a password,
so I will just remove that mention and add this patch in the future this
if anyone sees value in removing a password.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-06-06 15:29:58 Re: Proposal to Re-Order Postgresql.Conf, part II
Previous Message Tom Lane 2003-06-06 15:25:52 Re: [HACKERS] Removing a user's password

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-06-06 15:30:54 Re: Lonely Patch Seeks Long-Term Commitment to Codebase
Previous Message Tom Lane 2003-06-06 15:25:52 Re: [HACKERS] Removing a user's password