Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f93DYUn86295 for ; Wed, 3 Oct 2001 09:34:30 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f93DHNA37315 for pgsql-admin@postgresql.org; Wed, 3 Oct 2001 09:17:23 -0400 (EDT) (envelope-from news) From: "Pedro Fonseca" X-Newsgroups: comp.databases.postgresql.admin Subject: Authorization problem Date: Wed, 3 Oct 2001 14:17:15 +0100 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 31 Message-ID: <9pf352$14e0$1@news.tht.net> X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 To: pgsql-admin@postgresql.org X-Archive-Number: 200110/24 X-Sequence-Number: 2270 Greetings! I have 2 PostgreSQL users created. I'd like access to a database restricted only to one of these users. As it is, in pg_hba.conf, any PostgreSQL user can connect locally to any database whatsoever: # TYPE DATABASE IP_ADDRESS MASK AUTHTYPE MAP local all trust host all 127.0.0.1 255.255.255.255 trust I have TCP/IP based connections disabled. What I would like would be something like: # TYPE DATABASE IP_ADDRESS MASK AUTHTYPE MAP local test_db ident test_db_map The problem is that the ident AUTHTYPE can only be used for TCP/IP connections. How do I tell PostgreSQL that I only want to allow postgres_user_1 to connect to test_db, and not every user? And how do I do this without using passwords and TCP/IP connections? Thanks in advance. -- ______________________________________________________________________ Pedro Fonseca (pedro.fonseca@iscte.pt) Mob.: (+351)964598357 http://www.pedrofonseca.com ADETTI/ISCTE (Instituto Superior de Ciências do Trabalho e da Empresa)