Re: pgpass.conf

From: Dave Page <dpage(at)postgresql(dot)org>
To: Ashish Karalkar <ashish(dot)karalkar(at)info-spectrum(dot)com>
Cc: rod(at)iol(dot)ie, pgsql-general(at)postgresql(dot)org
Subject: Re: pgpass.conf
Date: 2007-07-10 11:19:44
Message-ID: 46936B50.4050907@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support pgsql-general

Ashish Karalkar wrote:
> The batch file is run under postgres user, also owner of the pgpass.conf
> file is postgres.
> As far as my knowledge the permission checking is not done on windows
> anyways the owner is same so i dont think there is any problem of
> permission
>

OK - have you tried 127.0.0.1 instead of localhost in the pgpass file?

> "The permissions on .pgpass must disallow any access to world or group;
> achieve this by the command chmod 0600 ~/.pgpass. If the permissions are
> less strict than this, the file will be ignored. (The file permissions
> are not currently checked on Microsoft Windows, however.)"
>

That's referring to the checks we do on *nix to ensure the file is
secure enough, rather than whether or not the client program can read it
which is what Rod was suggesting I think. The Windows ACL model is
sufficiently more complex that doing that check is far harder than it is
on *nix, and the Application Data directory should be secure anyway
(unless you're using FAT32, but then there's no helping you anyway :-) ).

Regards, Dave

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Vishal Arora 2007-07-10 11:43:11 Re: Demande de support
Previous Message Magnus Hagander 2007-07-10 11:13:03 Re: pgpass.conf

Browse pgsql-general by date

  From Date Subject
Next Message John DeSoi 2007-07-10 11:35:59 Re: catalog location
Previous Message Magnus Hagander 2007-07-10 11:13:03 Re: pgpass.conf