From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christophe Labouisse <labouiss@cybercable.fr>
Cc: pgsql-sql@postgresql.org
Subject: Re: pg_dumpall and password access
Date: Tue, 03 Apr 2001 19:29:38 -0400
Message-ID: <29370.986340578@sss.pgh.pa.us> (raw)
In-Reply-To: <m266gliosk.fsf@gabuzo.meunet>
References: <m266gliosk.fsf@gabuzo.meunet>
Christophe Labouisse <labouiss@cybercable.fr> writes:
> I'm trying to run pg_dumpall to backup all my users' bases but since I
> have configure pg_hba.conf to "passwd" pg_dumpall always fails:
pg_dumpall doesn't work very well with password authentication (and
even if it did, storing the password in a cron script doesn't seem
like a good idea to me).
As long as the dumper will run on the same machine as the database
server, consider using IDENT authorization instead. You'll need an
identd daemon running, and you'll need to use a TCP connection because
IDENT only works with TCP connections. The simplest form of pg_hba.conf
entry is
host all 127.0.0.1 255.255.255.255 ident sameuser
If you have no other users you want to let in, you could use an explicit
ident map instead of 'sameuser' to tighten this up even more. See the
admin documentation for more info.
I don't recommend using IDENT for connections from untrusted machines,
but on localhost it's as trustworthy as your local sysadmin...
regards, tom lane
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, labouiss@cybercable.fr
Subject: Re: pg_dumpall and password access
In-Reply-To: <29370.986340578@sss.pgh.pa.us>
References: <m266gliosk.fsf@gabuzo.meunet> <29370.986340578@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