Re: can't authenticate pg admin

From: "Martin J(dot) Brown, Jr(dot)" <mjbjr(at)mjbjr(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: can't authenticate pg admin
Date: 2004-08-16 07:30:59
Message-ID: pan.2004.08.16.07.33.12.593831@mjbjr.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

> "Martin J. Brown, Jr." <mjbjr(at)mjbjr(dot)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?

From what I've read, 'pg_users' is a default view (doesn't need to be
created ?) on 'pg_shadow'. My newbie attempts to view this 'view' have
been unsuccessful. How do you view/use 'pg_users'?

Thank you.

--
- Martin J. Brown, Jr. -
- mjbjr(at)mjbjr(dot)com -
Public PGP Key ID: 0x76A1778E keyserver: http://pgpkeys.mit.edu:11371/
Fingerprint: F2D2 5D2B 333F 79D0 D126 0941 21D6 7321 76A1 778E

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Thomas Madsen 2004-08-16 09:27:45 Re: TOAST tables keeps growing!
Previous Message Peter Eisentraut 2004-08-15 18:52:39 Re: PostgreSQL equivalent to MySQL's HEAP tables?