Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7tCr-0007H5-Fh for pgsql-admin@arkaria.postgresql.org; Fri, 09 Aug 2013 20:22:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V7tCq-0006wW-Vo for pgsql-admin@arkaria.postgresql.org; Fri, 09 Aug 2013 20:22:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7tCq-0006wQ-A1 for pgsql-admin@postgresql.org; Fri, 09 Aug 2013 20:22:40 +0000 Received: from mout1.freenet.de ([2001:748:100:40::2:3]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7tCn-00026R-6u for pgsql-admin@postgresql.org; Fri, 09 Aug 2013 20:22:39 +0000 Received: from [195.4.92.141] (helo=mjail1.freenet.de) by mout1.freenet.de with esmtpa (ID jan.lentfer@freenet.de) (port 25) (Exim 4.80.1 #4) id 1V7tCl-0006Bv-0c for pgsql-admin@postgresql.org; Fri, 09 Aug 2013 22:22:35 +0200 Received: from localhost ([::1]:36575 helo=mjail1.freenet.de) by mjail1.freenet.de with esmtpa (ID jan.lentfer@freenet.de) (Exim 4.80.1 #4) id 1V7tCk-0003DR-SL for pgsql-admin@postgresql.org; Fri, 09 Aug 2013 22:22:34 +0200 Received: from mx9.freenet.de ([195.4.92.19]:60018) by mjail1.freenet.de with esmtpa (ID jan.lentfer@freenet.de) (Exim 4.80.1 #4) id 1V7t9Q-0008Sk-9o for pgsql-admin@postgresql.org; Fri, 09 Aug 2013 22:19:08 +0200 Received: from p57981cb5.dip0.t-ipconnect.de ([87.152.28.181]:3281 helo=epia.lan.net) by mx9.freenet.de with esmtpa (ID jan.lentfer@freenet.de) (port 25) (Exim 4.80.1 #4) id 1V7t9Q-0003lL-5B for pgsql-admin@postgresql.org; Fri, 09 Aug 2013 22:19:08 +0200 Received: from localhost (localhost [127.0.0.1]) by epia.lan.net (Postfix) with ESMTP id 9958241C92A73 for ; Fri, 9 Aug 2013 22:19:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at lan.net Received: from epia.lan.net ([127.0.0.1]) by localhost (epia.lan.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ctoLg7SyP2L4 for ; Fri, 9 Aug 2013 22:19:00 +0200 (CEST) Received: from [10.94.76.102] (netbook.lan.net [10.94.76.102]) by epia.lan.net (Postfix) with ESMTPA id 2BAF041C92A33 for ; Fri, 9 Aug 2013 22:18:59 +0200 (CEST) Message-ID: <52054EA5.3080305@web.de> Date: Fri, 09 Aug 2013 22:18:45 +0200 From: Jan Lentfer User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Request for help References: <3505241A-677F-412B-BB89-62D6E4CF8028@gmail.com> In-Reply-To: <3505241A-677F-412B-BB89-62D6E4CF8028@gmail.com> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.9 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 09.08.2013 21:49, schrieb ramanajvv@gmail.com: > We have recently converted our db2 database to PostgreSQL and we > stuck on one thing I,e Authentication of users. > > Let me explain what was in DB2, > > We have a unix group "mhubrpt" on DB2 unix server and have connect > permissions to DB2 database for that group. Whenever user needs > access to DB2 database we will add that user to DB2 unix server and > assign to group mhubrpt, then user was getting access to DB2 > database. If user wants to connect DB2 database through graphical > tool like Toad from any other windows operated machine he used to > give unix server login credential (userid and password) at Tool. > > We are planning to maintain same type of authentication in > PostgreSQL, can you please help us. PostgreSQL does not use - different to e.g. Informix and DB2 - use the user administration of the underlying operating system. You can achieve what you described just by adding users as a postgresql login role and giving them connect and other priviliges (e.g. SELECT, etc) on the databse, schema, table... etc as you like. Using a "group" role might ease your privilige administration. http://www.postgresql.org/docs/9.2/static/user-manag.html Hope this helps Jan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQEcBAEBAgAGBQJSBU6QAAoJEIJ7qif/sHv9YFMIAIx3H4vhJRk7N6SphvaYLe2Z JopPwMDIBWNJL82iXD/tT/eSYmy9g/7sZGsFY/xpbHNXqOuJnQVw886JCi0I6jWH 2ibm9kI/nIK+/xSxLWJJJNzlE7iwxZoczIxcDMSi0+tZmy9EuyPdpr6K4r+cskCH BIgxJ3HPCDuXTOlyvKow/iK47lZyNilBEvqauUH9lfl5B2sRkKrnOWOjiITdZzCg pNJ4oYIg/Qc0hisZYjvTHXnMEv0GWAuKfrJ9FQ/v3YLLx4C05GFxbSAwUA2yzmDF IyfhP9m//wjoozLoQSvqs3p6J50ivot5e/zCO/FUv3/e73eJdHLYzFrUrEXs+Fs= =Twlz -----END PGP SIGNATURE----- -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin