Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 50BEF64FD1A; Wed, 20 Aug 2008 10:11:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 63826-02-4; Wed, 20 Aug 2008 10:11:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by postgresql.org (Postfix) with ESMTP id B53E965012D; Wed, 20 Aug 2008 10:11:12 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Wed, 20 Aug 2008 08:11:10 -0500 Message-Id: <48ABD192.EE98.0025.0@wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 7.0.3 Date: Wed, 20 Aug 2008 08:10:59 -0500 From: "Kevin Grittner" To: "pgsql-admin@postgresql.org" , "Shashwat_Nigam" Cc: "pgsql-general@postgresql.org" , "pgsql-sql@postgresql.org" Subject: Re: Regarding access to a user References: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200808/87 X-Sequence-Number: 29932 >>> Shashwat_Nigam wrote: > Now what I want is to set privilege that whenever the user log in as Us > he can only see database Y, none other than that. The user Us could have all > rights for database Y but can't go for any other database (X or Z). The first thing you need to do is configure "host based authentication": http://www.postgresql.org/docs/8.3/interactive/auth-pg-hba-conf.html Among other things, this allows you to restrict which users can connect to which databases. -Kevin