X-Original-To: pgsql-admin@postgresql.org Received: from localhost (unknown [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 3C86B925EB2 for ; Thu, 22 May 2003 07:00:55 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 70550-03 for ; Thu, 22 May 2003 07:00:09 -0400 (EDT) Received: from perrin.int.nxad.com (internal.ext.nxad.com [69.1.70.251]) by developer.postgresql.org (Postfix) with ESMTP id D3F479256FC for ; Thu, 22 May 2003 02:39:33 -0400 (EDT) Received: by perrin.int.nxad.com (Postfix, from userid 1001) id 1737421062; Wed, 21 May 2003 23:39:32 -0700 (PDT) Date: Wed, 21 May 2003 23:39:31 -0700 From: Sean Chittenden To: ivan Cc: pgsql-admin@postgresql.org Subject: Re: SECURITY Message-ID: <20030522063931.GF71079@perrin.int.nxad.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-PGP-Key: finger seanc@FreeBSD.org X-PGP-Fingerprint: 3849 3760 1AFE 7B17 11A0 83A6 DD99 E31F BC84 B341 X-Web-Homepage: http://sean.chittenden.org/ User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/292 X-Sequence-Number: 8854 > why when i create user and create database for this user, he can > connect to my others database , (not only his own) and create there > tables and etc. He can not select , delete etc but he can create > something and then drop this , is can be like a bug ? Nope. You need to remove access to the public schema if you want to prevent this. REVOKE USAGE ON SCHEMA public FROM PUBLIC; It also might be wise for you to look at the pg_hba.conf and make use of the samegroup directive. -sc PS It'd be really slick if there was a database, user, and method type that'd be pgsql or some such and would allow the DBA to configure what users get access to what tables _inside_ of the database via a system catalog, leaving pg_hba.conf as an all else fails last resort mechanism used in recovery or bootstrapping. -- Sean Chittenden