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 1pZw3o-000777-KC for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Mar 2023 15:50:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pZw3m-0006OV-AE for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Mar 2023 15:50:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZw3m-0006OM-1u for pgsql-bugs@lists.postgresql.org; Wed, 08 Mar 2023 15:50:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZw3f-00029a-95 for pgsql-bugs@lists.postgresql.org; Wed, 08 Mar 2023 15:50:32 +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 328FoNmo190975; Wed, 8 Mar 2023 10:50:23 -0500 From: Tom Lane To: Francisco Olarte cc: "David G. Johnston" , "Stephens, Gary" , "pgsql-bugs@lists.postgresql.org" Subject: Re: pg_basebackup fails with Could not stat file or directory "./.pg_hba.conf.un~" In-reply-to: References: Comments: In-reply-to Francisco Olarte message dated "Wed, 08 Mar 2023 10:55:36 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <190973.1678290623.1@sss.pgh.pa.us> Date: Wed, 08 Mar 2023 10:50:23 -0500 Message-ID: <190974.1678290623@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Francisco Olarte writes: > Besides locking I've encountered this kind of problems with people > having a habit of editing non-root-owned config files as root with > editors which do not take care of setting permissions. An ls -l of the > offending file is normally useful, or the version with all extended > acl/attrs which I'm unable to recall now. Yeah, "ls -lZ" to see SELinux labels. It's easy to forget about those if you're not pretty used to them. regards, tom lane