From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Vishal Kashyap @ [SaiHertz] <vishalonlist@gmail.com>
Cc: pgsql-php@postgresql.org
Subject: Re: PostgreSQL Backup Script
Date: Fri, 01 Apr 2005 13:01:03 +0800
Message-ID: <424CD58F.3040108@familyhealth.com.au> (raw)
In-Reply-To: <77b69d2105033120543ca670a7@mail.gmail.com>
References: <77b69d2105033120543ca670a7@mail.gmail.com>
> One obvious solution was to use .pgpass but it does not appeal me
> because it is again a security threat.
> any pointers or help may lead to unlocked secret.
.pgpass is the only way to do it that is NOT a security threat.
You can set PGUSER and PGPASSWORD environmental variables, but they are
easily readable from other processes.
I suggest allowing the 'postgres' user to connect with 'ident sameuser'
in pg_hba.conf from the localhost only, then always just run pg_dump as
'postgres'.
Chris
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-php@postgresql.org
Cc: chriskl@familyhealth.com.au, vishalonlist@gmail.com
Subject: Re: PostgreSQL Backup Script
In-Reply-To: <424CD58F.3040108@familyhealth.com.au>
References: <77b69d2105033120543ca670a7@mail.gmail.com> <424CD58F.3040108@familyhealth.com.au>
* 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