Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuI2B-0006ZU-BA for pgsql-bugs@arkaria.postgresql.org; Thu, 26 May 2022 18:16:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nuI27-0006aU-CN for pgsql-bugs@arkaria.postgresql.org; Thu, 26 May 2022 18:16:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuI27-0006Yp-47 for pgsql-bugs@lists.postgresql.org; Thu, 26 May 2022 18:16:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuI25-0001tX-4e for pgsql-bugs@lists.postgresql.org; Thu, 26 May 2022 18:16:26 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 24QIGL5A2415120; Thu, 26 May 2022 14:16:21 -0400 From: Tom Lane To: David Steele cc: "Suralkar, Yogendra (Yogendra)" , "pgsql-bugs@lists.postgresql.org" , "Porob, Dattaram (Datta)" , "Oswal, Prashant (Prashant) **CTR**" , "Patil, Parag (Parag)" , "Devaraj, Sankar (Sankar)" , "Singh, Payal (Payal) **CTR**" Subject: Re: Unable to connect to PostgreSQL DB as root user when private key is owned by root with permission 640 In-reply-to: <2af73dd7-6ea2-b5f2-9b35-76e6a8f2a54a@pgmasters.net> References: <335500.1653058186@sss.pgh.pa.us> <1719047.1653422732@sss.pgh.pa.us> <2af73dd7-6ea2-b5f2-9b35-76e6a8f2a54a@pgmasters.net> Comments: In-reply-to David Steele message dated "Tue, 24 May 2022 16:33:12 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2415118.1653588981.1@sss.pgh.pa.us> Date: Thu, 26 May 2022 14:16:21 -0400 Message-ID: <2415119.1653588981@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk David Steele writes: > On 5/24/22 16:05, Tom Lane wrote: >> After further poking at this, I see that we also have to drop the check of >> file ownership. That was already dropped once long ago (3405f2b9253), on >> the grounds that if the file has suitable permissions but its ownership >> isn't what we expect then our read attempt will fail, so we needn't check >> ownership explicitly. While I'd prefer a more explicit error than the >> "Permission denied" that you get with this approach, the intent of this >> patch was not to create any new failure modes, so I think we're stuck >> with that. > That makes sense. Seems I should have dug further into why the server > does this but the client does not. Pushed that. >> Open questions: >> * This puts us back into a situation where the frontend and server tests >> are not in sync. Do we want to relax the server's checks to match this, >> or just leave that side as it stands? > I'm inclined to leave it as is in the back branches to avoid any other > unintended consequences. Perhaps we could make the change for PG15? Yeah, I'm unenthused now about touching this in the back branches. But do we want to do it in HEAD, or just leave well enough alone? regards, tom lane