Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 7EB6E475BF9 for ; Thu, 21 Nov 2002 15:35:42 -0500 (EST) Received: from wolff.to (wolff.to [66.93.197.35]) by postgresql.org (Postfix) with SMTP id B1B7C475B33 for ; Thu, 21 Nov 2002 15:35:41 -0500 (EST) Received: (qmail 7988 invoked by uid 500); 21 Nov 2002 20:45:46 -0000 Date: Thu, 21 Nov 2002 14:45:46 -0600 From: Bruno Wolff III To: Dan MacNeil Cc: pgsql-admin@postgresql.org Subject: Re: pg_hba.conf file review Message-ID: <20021121204546.GA7830@wolff.to> Mail-Followup-To: Dan MacNeil , pgsql-admin@postgresql.org References: <007d01c2918a$2ed1a200$923a8018@prometheus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <007d01c2918a$2ed1a200$923a8018@prometheus> User-Agent: Mutt/1.3.25i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/197 X-Sequence-Number: 6385 On Thu, Nov 21, 2002 at 13:16:50 -0500, Dan MacNeil wrote: > > Right now we give a user full privledges to the database, named after > the user by > > 1) creating the user with CREATEDB > 2) Give the user the right to connect to the database dummy > 3) creating a database as that user > 4) taking away the users rights to CREATEDB > > Is there a less kludgy way? In 7.3: CREATEDB DATABASE dbname OWNER username