Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fA7Ho7m15136 for ; Wed, 7 Nov 2001 12:50:07 -0500 (EST) (envelope-from nsayer@quack.kfu.com) Received: from medusa.kfu.com (medusa.kfu.com [3ffe:1200:301b:0:203:47ff:fe05:95f0]) by quack.kfu.com (8.11.6/8.11.6) with ESMTP id fA7Ho1l83409 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK); Wed, 7 Nov 2001 09:50:07 -0800 (PST) (envelope-from nsayer@quack.kfu.com) From: Nick Sayer Received: from kfu.com (localhost [127.0.0.1]) by medusa.kfu.com (8.11.6/8.11.6) with SMTP id fA7Ho1d86662; Wed, 7 Nov 2001 09:50:01 -0800 (PST) (envelope-from nsayer@kfu.com) Received: from 66.126.254.34 (SquirrelMail authenticated user nsayer) by medusa.kfu.com with HTTP; Wed, 7 Nov 2001 09:50:01 -0800 (PST) Message-ID: <3154.66.126.254.34.1005155401.squirrel@medusa.kfu.com> Date: Wed, 7 Nov 2001 09:50:01 -0800 (PST) Subject: Re: Problems with user-level security To: In-Reply-To: <20011107090246.N49204-100000@megazone23.bigpanda.com> References: <20011107090246.N49204-100000@megazone23.bigpanda.com> Cc: , X-Mailer: SquirrelMail (version 1.2.0 [rc1]) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Filter-Version: 1.7 (medusa.kfu.com) X-Archive-Number: 200111/28 X-Sequence-Number: 2553 Stephan Szabo wrote: > On Tue, 6 Nov 2001, Nick Sayer wrote: [...] >> What I *really* want is for an extra column to be added to pg_hba.conf >> to specify the user of interest. Like this: >> >> all local sameuser password >> backups local all password >> pgsql local all password >> >> Does this make any sense? Is there some way to achieve this I am >> missing? The only way I can do backups at the moment is introduce a >> race condition so that anyone can connect to any database they like at >> certain times of day. Not good. > > If you're using password, couldn't you do this by specifying the file > to look up the passwords in (the optional last parameter) on the local > all line and then only put the backups/pgsql password in it. That solution works perfectly. I now have local sameuser password local all password pg_superusers and have added the backup user to pg_superusers using pg_passwd. I am a happy camper! Especially nice is that I can empty out the pg_shadow password for the superusers.