Re: password is no required, authentication is overridden

From: "Andrew Hammond" <andrew(dot)george(dot)hammond(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: password is no required, authentication is overridden
Date: 2006-07-18 17:38:52
Message-ID: 1153244332.498381.292940@m79g2000cwm.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas Bley wrote:

> I type: pg_dump -h localhost -U postgres database_name and there is no
> question for the password.

Have you created a .pgpass (or whatever the equivilant in the Windows
world is)? That could be supplying the password.

> I haven't made changes to pg_hba.conf. I'm logged in as user "admin",
> not "postgres", the password is not empty.
>
> my pg_hba.conf:
>
> # ...
> # TYPE DATABASE USER CIDR-ADDRESS METHOD
>
> # IPv4 local connections:
> host all all 127.0.0.1/32 md5
>
> without the -h localhost, I get the same (complete) dump

I'm not sure what the default behaviour for local socket connections
is. Perhaps you should add a line to your pg_hba.conf to define a rule
for local socket connections. For example

local all all md5

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua Reich 2006-07-18 17:43:32 Re: [PATCHES] Proposed patch for contrib/cube
Previous Message Tom Lane 2006-07-18 17:28:14 Re: Possible Typecasting Bug with coalesce()