X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C06E6D1D528 for ; Tue, 3 Feb 2004 18:49:10 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 67314-07 for ; Tue, 3 Feb 2004 14:49:02 -0400 (AST) Received: from sal.ahpcrc.org (sal.ahpcrc.org [144.34.1.1]) by svr1.postgresql.org (Postfix) with ESMTP id 98199D1D12E for ; Tue, 3 Feb 2004 14:49:00 -0400 (AST) Received: from mycroft.ahpcrc.org (mycroft.ahpcrc.org [144.34.9.34]) by sal.ahpcrc.org (8.11.6/8.11.6) with ESMTP id i13Imf608042 for ; Tue, 3 Feb 2004 12:48:41 -0600 Received: from pelican.ncs.ahpcrc.org (pelican.ncs.ahpcrc.org [144.34.36.155]) by mycroft.ahpcrc.org (8.11.6/8.11.6) with ESMTP id i13ImaU12401 for ; Tue, 3 Feb 2004 12:48:36 -0600 Received: (from atanner@localhost) by pelican.ncs.ahpcrc.org (8.11.6/8.11.6) id i13ImYW03679 for pgsql-admin@postgresql.org; Tue, 3 Feb 2004 12:48:34 -0600 Date: Tue, 3 Feb 2004 12:48:34 -0600 From: amy@real-time.com To: pgsql-admin@postgresql.org Subject: pg_hba.conf and postgresql 7.2 Message-ID: <20040203184834.GD3082@real-time.com> Reply-To: amy@real-time.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/35 X-Sequence-Number: 12209 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