Received: from hotmail.com (oe65.law4.hotmail.com [216.33.148.161]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f87M9Q779770 for ; Fri, 7 Sep 2001 18:09:26 -0400 (EDT) (envelope-from temp6453@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 7 Sep 2001 15:09:20 -0700 X-Originating-IP: [172.141.217.199] From: "Mike Rogers" To: Subject: FINAL: Multi-User PostgreSQL usage SECURITY Date: Fri, 7 Sep 2001 19:08:08 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: X-OriginalArrivalTime: 07 Sep 2001 22:09:20.0365 (UTC) FILETIME=[BE5B59D0:01C137E9] X-Archive-Number: 200109/34 X-Sequence-Number: 2134 Greets all; So this issue was raised quite some time ago by many many people and seems to contantly be asked by new PostgreSQL users. I never seem to find any real answers for it. I am running a multi-user system and wish to have 10 user accounts with 10 different corresponding databases. I do not want user 'a' to be able to access user 'b's database- Only their own 'a' database. It really shouldn't be this difficult. I realize that I can revoke access to all users on the 'a' tables, but then user B can still create tables within user A's database. There has to be an easy solution. As a hosting solutions provider for a small number of clients, I have always steered in the direction of MySQL for this feature, but I am seeing some demand for PostgreSQL. I do not have the resources to run each user with their own copy of PostgreSQL. I have tried chaning pg_hba.conf to add the database field to the user, but that doesn't seem to help at all. Any thoughts? If it makes a difference, i can make the databases the same name as the username if I must. Please let me know if anyone knows of a way to do this. Thanks in advance; -- Mike