Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXrph-0004Po-RK for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2019 19:09:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iXrpg-00065G-99 for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2019 19:09:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXrpf-000659-VU for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2019 19:09:36 +0000 Received: from mailbackend.panix.com ([166.84.1.89]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXrpZ-0005HD-Aa for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2019 19:09:35 +0000 Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 47Jpyb23SKzwll; Thu, 21 Nov 2019 14:09:27 -0500 (EST) Received: by panix2.panix.com (Postfix, from userid 17622) id 47Jpyb12rjz1ZVx; Thu, 21 Nov 2019 14:09:27 -0500 (EST) Date: Thu, 21 Nov 2019 14:09:27 -0500 From: stan To: Adrian Klaver Cc: pgsql-general@lists.postgresql.org Subject: Re: Help with authentication on Debain/Ubuntu installation Message-ID: <20191121190927.GA21941@panix.com> References: <20191121124517.GA3320@panix.com> <20191121141502.GA14731@panix.com> <20191121143539.GA18839@panix.com> <20191121161247.GE21704@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Editor: gVim User-Agent: Mutt/1.12.1 (2019-06-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Nov 21, 2019 at 08:18:08AM -0800, Adrian Klaver wrote: > On 11/21/19 8:12 AM, stan wrote: > Please reply to list also > Ccing list. > > On Thu, Nov 21, 2019 at 07:56:10AM -0800, Adrian Klaver wrote: > > > On 11/21/19 6:35 AM, stan wrote: > > > > > If the 1st rule matches, I am thinking this will override any rule I put in > > > > after such as: > > > > > > > > local all postgres md5 > > > > > > > > Is my understanding of this correct? > > > > > > Yes. > > > > > > The question is whether you really need a password connection to a local > > > socket or not? > > > > > > If so then you will need to make the change and deal with any scripts that > > > are expecting a password free socket connection. > > > > > > If not leave it alone. If you want to test password connection then use a -h > > > localhost to get a host connection. > > > > > > > > > > Ugly. Thanks though I think I can skin this cat with a dfferent tool. I am > > going to try setting te needed users as the posgres db superuser. > > I would avoid that if at all possible, a superuser can wreak a lot of havoc > intentionally or unintentionally. > > It would help if you could spell out what you want to achieve, as I am sure > it has been done before by multiple people on this list. > Can do. At the moment, I have 2 instances one production and one sandbox. I want to be able to run pg_dump -d "production", take the resultant file to the sandbox and recreate a duplicate instance to do testing against. I would prefer that this not involve changing UNIX users to the postgres user, just to do this. -- "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin