X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id CE644CD093 for ; Sat, 19 Jul 2003 20:20:35 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 23763-03 for ; Sat, 19 Jul 2003 20:21:08 +0000 (GMT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by svr1.postgresql.org (Postfix) with ESMTP id DD0EBCD068 for ; Sat, 19 Jul 2003 17:20:33 -0300 (ADT) Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19dyBX-0007Uq-00 for ; Sat, 19 Jul 2003 22:20:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19dwzH-0002sQ-00 for ; Sat, 19 Jul 2003 21:03:19 +0200 From: "Arcadius A." Subject: Help with privilege or pg_hba.conf Date: Sat, 19 Jul 2003 21:04:21 +0200 Lines: 29 Message-ID: X-Complaints-To: usenet@main.gmane.org X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Cc: pgsql-general@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/188 X-Sequence-Number: 9528 Hello! I have a Unix box running PostgreSQL 7.3.3. So far, I have been the only one user of the DB server...and I didn't have any problem using it with the JDBC driver. Now, a friend of mine wants to use the DB too for doing web stuffs(PHP, JSP).... so I need to create a new user on PostgreSQL. this has been done easily. Now, I don't want the new user (his username is "cool",and he has a password ) to access other DBs on my server... I want him to access ONLY a database named "cool" that he owns (as user "cool", I have created the DB "cool"... and I want user "cool" to access ONLY DB "cool" and do any operation on it). How can this be done? I've been trying to modify "pg_hba.conf" but with no luck .... as user "cool", after I connect to the DB server via psql and I do "\c anotherdb", user "cool" can still connect to "anotherdb". my "pg_hba.conf" can be found at http://ahouans.sh.cvut.cz/pg_hba.txt Thanks in advance. Have a nice weekend! Arcadius Ahouansou.