pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: amy@real-time.com
To: pgsql-admin@postgresql.org
Subject: pg_hba.conf and postgresql 7.2
Date: Tue, 3 Feb 2004 12:48:34 -0600
Message-ID: <20040203184834.GD3082@real-time.com> (raw)

New to postgresql...I've done a lot of google-searching and searching of
the pgsql archives but haven't found much...


I'm trying to configure pg_hba.conf so that:

1. using a local connection, user postgres does not require a password for any database
2. using a local connection, all other users require password for all
databases

We are running debian stable so we have postgresql 7.2  From what I
understand, the syntax of pg_hba.conf changed with 7.3, making it easier
to do what I want to above.  With 7.3, I would do this I think:

local	all	postgres	trust
local	all			md5

Is there a way to accomplish this with version 7.2?  

If not, I was planning on setting a password for user postgres.  However,
in that case, what's the easiest way for backup scripts, etc, running as
user postgres to be passed the password?

Are there any online documents for recommended ways of configuring
pg_hba.conf with security in mind?

Thanks for your help.
-- 
Amy Tanner
amy@real-time.com



view thread (2+ messages)  latest in thread

Message-ID: <20040203184834.GD3082@real-time.com>
Permalink:  ../20040203184834.GD3082@real-time.com/
Also on:    postgresql.org/message-id/20040203184834.GD3082@real-time.com

 · 

reply

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-admin@postgresql.org
  Cc: amy@real-time.com
  Subject: Re: pg_hba.conf and postgresql 7.2
  In-Reply-To: <20040203184834.GD3082@real-time.com>
  References: <20040203184834.GD3082@real-time.com>

* 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