From: Dr. Hans-Christian Waldmann <waldmann@samson.fire.uni-bremen.de>
To: pgsql-admin@postgresql.org
To: silvan@goemon.polito.it
Subject: Re: psql -U postgres does not require a password
Date: Mon, 6 Nov 2000 12:37:59 +0100
Message-ID: <200011061137.eA6Bbxr27432@samson.fire.uni-bremen.de> (raw)
Mon, 6 Nov 2000 12:11:20 +0100, SILVAN wrote:
>
> I've just upgraded Redhat RPMs from Postgres 6.5.3 to 7.0.2 on two servers
> and run into the same problem on both. When I call the client psql:
>
> psql database_name -U postgres
>
> I'm not asked for a password and every user can access the database with
> postgres privileges.
> The password for postgres user is set (if I do a "select * from pg_shadow" I
> can see it). In addition this happens with every user, not just with postgres.
>
> What am I doing wrong ?
> Thanks.
>
> Silvan
>
I'm not really a postgres admin professional so accept my execuses in case
this hint is to dumb. Your password setting might have been kept in your
pg_shadow table while upgrading. It's just a table internal to the database,
after all. As far as I know, _Access_ is controlled by a file "pg_hba.conf"
which is _external_ to the database. I could imagine that your migration
install has simply overwritten the external file while preserving internal
tables. A default pg_hba.conf leads to the behavior described: anyone can
access any database with just a username. So please chekc this file.
HTH
Hans
---------------------------------------------------------------------
Dr. Hans C Waldmann
Methodology & Applied Statistics in Psychology & the Health Sciences
ZFRF / University of Bremen / Grazer Str 6 / 28359 Bremen / Germany
waldmann@samson.fire.uni-bremen.de / http://samson.fire.uni-bremen.de
friend of: AIX PERL ADABAS SAS TEX
---------------------------------------------------------------------
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: waldmann@samson.fire.uni-bremen.de, silvan@goemon.polito.it
Subject: Re: psql -U postgres does not require a password
In-Reply-To: <200011061137.eA6Bbxr27432@samson.fire.uni-bremen.de>
References: <200011061137.eA6Bbxr27432@samson.fire.uni-bremen.de>
* 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