pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin J. Brown, Jr. <mjbjr@mjbjr.com>
To: pgsql-admin@postgresql.org
Subject: Re: can't authenticate pg admin
Date: Mon, 16 Aug 2004 07:30:59 GMT
Message-ID: <pan.2004.08.16.07.33.12.593831@mjbjr.com> (raw)
References: <pan.2004.08.11.10.17.34.477531@mjbjr.com>
	<25827.1092423276@sss.pgh.pa.us>

On Fri, 13 Aug 2004 14:54:36 -0400, Tom Lane wrote:

> "Martin J. Brown, Jr." <mjbjr@mjbjr.com> writes:
>> Other db users authenticate fine, only the admin fails.
> 
> That seems very odd.  The only theory that comes to mind is that you've
> set a password expiration time for that account in pg_shadow.
> 

After double checking...

Yes, the pg admin, "postgres", fails authentication, and regular db users
don't even get asked to authenticate!!

'pg_hba.conf' shows:

local   all         all                                             password
 
# IPv4-style local connections:
host    all         all         127.0.0.1         255.255.255.255   password
 
# IPv6-style local connections:
host    all         all         ::1              
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff        password


As for 'pg_shadow', never touched it.

In the process of trying to hunt down this problem, I've set "postgres"'s
pw numerous times.  And the time from that to testing would've been less
than 30 seconds.  A very short expiration, indeed.

Is there a way to check that the pw has actually been set (to anything)?
When I use 'alter user postgres with password 'abc'' within 'psql'and hit
enter, I get a new psql prompt, but no indication of whether the command
succeeded or failed.  Is that normal?



view thread (3+ messages)

Message-ID: <pan.2004.08.16.07.33.12.593831@mjbjr.com>
Permalink:  ../pan.2004.08.16.07.33.12.593831@mjbjr.com/
Also on:    postgresql.org/message-id/pan.2004.08.16.07.33.12.593831@mjbjr.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mjbjr@mjbjr.com
  Subject: Re: can't authenticate pg admin
  In-Reply-To: <pan.2004.08.16.07.33.12.593831@mjbjr.com>
  References: <pan.2004.08.11.10.17.34.477531@mjbjr.com> <25827.1092423276@sss.pgh.pa.us> <pan.2004.08.16.07.33.12.593831@mjbjr.com>

* 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