Re: psql security fail?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Maxy <maxy0440yxam(at)yahoo(dot)it>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: psql security fail?
Date: 2013-11-03 20:41:52
Message-ID: 10939.1383511312@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Maxy <maxy0440yxam(at)yahoo(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2013-11-04 09:48:42 Re: Completely broken replica after PANIC: WAL contains references to invalid pages
Previous Message Maxy 2013-11-03 20:20:21 psql security fail?