Re: How to enable automatic md5 password prompting when connecting to PostgreSQL

From: John DeSoi <desoi(at)pgedit(dot)com>
To: Tom Wallick <tomwallick(at)yahoo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: How to enable automatic md5 password prompting when connecting to PostgreSQL
Date: 2005-03-11 12:38:20
Message-ID: 733E957E-922A-11D9-B332-000A95B03262@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Tom,

On Mar 11, 2005, at 1:51 AM, Tom Wallick wrote:

> prompt request the password AUTOMATICALLY.
>
> How can I clean/flush out the md5 passwords I
> originally created and start over alter the two user
> accounts 'postgres' and 'tomwallick' to simply have
> regular password athentication. Keep in mind
> 'postgres' account is actually the administrator.
>
> Or is it normal for my database to force me to type in
> the -W flag to force me to enter in my password.
>

I think what you are seeing is that passwords are not required by
default for local users. You can change this by adding a line to your
pg_hba.conf file (located in the data directory). For example, this
will cause password prompting for all local users of the movies
database:

# TYPE DATABASE USER IP-ADDRESS IP-MASK
METHOD
local movies all md5

After changing this be sure to signal or restart PostgreSQL.

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message John DeSoi 2005-03-11 13:42:06 Re: How to enable automatic md5 password prompting when connecting to PostgreSQL
Previous Message Milen A. Radev 2005-03-11 10:06:16 Re: Too frequent warnings for wraparound failure