Received: from iteso.mx (iteso.mx [148.201.1.4]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0HGLq031623 for ; Wed, 17 Jan 2001 11:21:52 -0500 (EST) (envelope-from alfonso@iteso.mx) Received: from iteso.mx (alfonso@[148.201.112.30]) by iteso.mx (8.11.1/8.11.1) with ESMTP id f0HGLjH74369 for ; Wed, 17 Jan 2001 10:21:45 -0600 (CST) (envelope-from alfonso@iteso.mx) Message-ID: <3A65C695.542409B3@iteso.mx> Date: Wed, 17 Jan 2001 10:21:41 -0600 From: Alfonso Peniche Organization: Iteso University X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.17 i686) X-Accept-Language: en MIME-Version: 1.0 CC: pgsql-admin@postgresql.org Subject: Re: Database Privileges References: <978385007.20010117162754@cultcom.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200101/101 X-Sequence-Number: 477 I think there's one possible solution, though I haven't fully tried it and the administration can become rather bothersome and even complicated, but here goes. I did some testing by modifying the pg_hba.conf file, specifying which database may be access from which IP address, and it worked, though I haven't done any serious testing. The reason this might work for me is that I don't have that many users to connect directly to the database, instead I use a common user account, which, in a multi-tier scheme, makes the connection from an App-server (the App-server makes a remote connection to my pg-server), so I know there's only one machine (besides mine), that would be connecting to the database. As I said before: 1.- If you have several connections from diferent machines this method could become rather complicated, but it's an idea. 2.- I haven't fully tested it. Hope this helps. Alfonso Peniche Markus Wigge wrote: > Hi PG-Admins, > > I think this question is asked more often than you'd like it to be > so excuse me ... > Is there any possibility to restrict database-access user based? > When I create a user without the permission to create databases this > user has access to all available databases on the system. He can > create and drop database objects but cannot manipulate objects owned > by other users. > > I don't really like this situation and I want to give exclusive right > to databases so that just the owner of it can create and drop > things. > > -- > bye, > Markus mailto:markus@cultcom.de