From: Tom Lane <tgl@sss.pgh.pa.us>
To: Maxy <maxy0440yxam@yahoo.it>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: psql security fail?
Date: Sun, 03 Nov 2013 15:41:52 -0500
Message-ID: <10939.1383511312@sss.pgh.pa.us> (raw)
In-Reply-To: <1383510021.28409.YahooMailNeo@web28804.mail.ir2.yahoo.com>
References: <1383510021.28409.YahooMailNeo@web28804.mail.ir2.yahoo.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Maxy <maxy0440yxam@yahoo.it> writes:
> Good morning, i have a pg_hba.conf
> local all all md5
> host all all 127.0.0.1/32 md5
> if i do a
> psql -d mydb
> pg asks me the password but if i do
> psql -U postgresql -d mydb
> pg don't ask me the password.
Sounds to me like Postgres isn't actually using the pg_hba.conf file you
think it is. Try "show hba_file;" while connected to see which file
is really being used. Also, if you changed the file's contents, you might
have forgotten to restart or SIGHUP the postmaster to get it to notice
the change.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, maxy0440yxam@yahoo.it
Subject: Re: psql security fail?
In-Reply-To: <10939.1383511312@sss.pgh.pa.us>
References: <1383510021.28409.YahooMailNeo@web28804.mail.ir2.yahoo.com> <10939.1383511312@sss.pgh.pa.us>
* 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