pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Drew Lopucki <drew@lopucki.com>
To: pgsql-admin@postgresql.org
Subject: Superuser can't log in after changing 'trust' in pg_hba.conf
Date: Wed, 13 Mar 2002 00:22:11 -0500
Message-ID: <KPEGLAAIDKJPAJOIMPEOEENCCAAA.drew@lopucki.com> (raw)

I am setting up a new postgreSQL/Linux installation (latest stable pg.)
After changing the line in the pg_hba.conf file:

local		all			trust


to read:

local		all			md5


I was no longer able to access the database with psql as 'postgres'.  I left
the other line in this default implementation of the file alone (i.e. the
host line.)  The password I gave was correct but was not accepted by the db.
Other users' passwords were accepted with no problem.  The postgres user's
password was tied to the Linux system password for that account.  I tried
with a login (su postgres) and the password was accepted there.  So then I
reset the pg_hba.conf file, logged in with psql and changed the password
with ALTER USER.  Then I reset the pg_hba.conf again to read 'md5'
encryption and now I can login with 'postgres' user.  Can anyone tell me why
this is?  Also, since it took a short while of dancing around to figure this
out, should this appear as a doc note in the instructions?


Also, I am forced to restart the postmaster to get it to begin challenging
for passwords when the documentation clearly says this isn't necessary.  Is
this known as well?  Again should I create a doc note for this?




Message-ID: <KPEGLAAIDKJPAJOIMPEOEENCCAAA.drew@lopucki.com>
Permalink:  ../KPEGLAAIDKJPAJOIMPEOEENCCAAA.drew@lopucki.com/
Also on:    postgresql.org/message-id/KPEGLAAIDKJPAJOIMPEOEENCCAAA.drew@lopucki.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: drew@lopucki.com
  Subject: Re: Superuser can't log in after changing 'trust' in pg_hba.conf
  In-Reply-To: <KPEGLAAIDKJPAJOIMPEOEENCCAAA.drew@lopucki.com>
  References: <KPEGLAAIDKJPAJOIMPEOEENCCAAA.drew@lopucki.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