Re: Password protection?

From: "Joel Burton" <jburton(at)scw(dot)org>
To: Rasputin <rasputin(at)freebsd-uk(dot)eu(dot)org>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Password protection?
Date: 2000-12-04 16:21:27
Message-ID: 3A2B7E37.10126.3E261F@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

On 4 Dec 2000, at 14:08, Rasputin wrote:

> I can't figure out how to password protect an username.

Change the line in pg_hba.conf to "password", not trust. Trust
means that the user is never prompted for a password. (this is the
default for local connections, which seems much to open for my
tastes; unfortunately, many people create their "host" Internet
lines, never having changed this.)

To create a password for the postgres user,

ALTER USER postgres WITH PASSWORD 'xxxxx';

or, to see what's really happening, look in pg_password.

--
Joel Burton, Director of Information Systems -*- jburton(at)scw(dot)org
Support Center of Washington (www.scw.org)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Zachary Beane 2000-12-04 16:49:11 names in WHERE and HAVING
Previous Message Hancock, David (DHANCOCK) 2000-12-04 16:20:11 RE: Your RDBMS Survey ...

Browse pgsql-novice by date

  From Date Subject
Next Message Jakub Mareček 2000-12-04 16:33:19 Install Posgres under win2k
Previous Message Rasputin 2000-12-04 14:08:23 Password protection?