From: | "Brett W(dot) McCoy" <bmccoy(at)chapelperilous(dot)net> |
---|---|
To: | Heath Johns <public(at)elesi(dot)org> |
Cc: | <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: Permissions |
Date: | 2001-02-27 18:13:51 |
Message-ID: | Pine.LNX.4.30.0102271312440.20040-100000@chapelperilous.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On Tue, 27 Feb 2001, Heath Johns wrote:
> I need every postgres account to be authenticated by password. However
> I would also like to have the local unix user 'postgres' to be able to
> bypass that password authentication. The reason is that I have a cron
> job that calls pg_dump under that account and I would rather not have to
> put the master password for my rdbms in a script.
>
> I imagine this is a common scenario. Any thoughts?
You need something like this in your $PGDATA/pg_hba.conf file:
local postgres trust
local template1 trust
host all 127.0.0.1 255.255.255.255 password
-- Brett
http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
Carmel, New York, has an ordinance forbidding men to wear coats and
trousers that don't match.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-02-27 18:50:23 | Re: Permissions |
Previous Message | Heath Johns | 2001-02-27 17:39:59 | Permissions |