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 1oq1pJ-0002vP-Rs for pgsql-general@arkaria.postgresql.org; Wed, 02 Nov 2022 00:41:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oq1oJ-0006ax-O2 for pgsql-general@arkaria.postgresql.org; Wed, 02 Nov 2022 00:40:51 +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 1oq1oI-0006al-Nu for pgsql-general@lists.postgresql.org; Wed, 02 Nov 2022 00:40:51 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oq1oD-0002aZ-AX for pgsql-general@lists.postgresql.org; Wed, 02 Nov 2022 00:40:49 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 3D39F3200913; Tue, 1 Nov 2022 20:40:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 01 Nov 2022 20:40:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1667349638; x= 1667436038; bh=4hASI+RGJdPbjuQGwkm5vi37VgMhbpkne1gyFzt5E5c=; b=W 3uoIupX93LfBgGSYfrTtDQvYMSOph0MhEs16OfOmFxImLC4nzGq46uq+bOKJsv8n Z7AHcCuoi++dGXcBX/7yhYtxiKyRV3Jcit+2aDJQwR/P+UBER7wNxGl7Im7AOdzx 4TIR7xPyUieebR2bgVw1wJ9vnaR+hHngykjDvkFwAspa55gHWascvup7yx9sn51t rjX9Ne9+iHLf1gUUntMBJnQGgscAgUuh+sWG8hFIKvMqM+06ebU7YUEowae7Jclc WqAdK3s+hu3BS8RySDP4p+EEiLQF05/1BSSAXmAZHWUvKl5OsoPfdIs185YxNFsf NHanGkDSoi1WfwSHwpOyA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1667349638; x= 1667436038; bh=4hASI+RGJdPbjuQGwkm5vi37VgMhbpkne1gyFzt5E5c=; b=X zDrT0vQsQsf8O0wYmrRbgLBTGR51UBX3bCizXWB1gfD04LvgBq5iaHgw/zObYXB9 UismuaGEWzOR60xdWPXEK6ls/edF5oZxNZ9LOW44q+1rcISH2UahqUaLNrTT8lLk jWWOzPf499d81umIHjCaWiqt9nYgX3ABeqY28hYsxLmZ7Gu3YCR0x0W7bSCBo9s0 3q3UccgQP/Blwqkw+T9WxUNF1zmHNvw+uBIWHDiEcpftBQCKRE8kukLBMRkAvnHT uA/r//Vy9Mzf9OnxUqeDyT3yYeWFAJA9Hm9EsmzT6jS/d5h6xTEoGSrFT+FZcuUH QcNMdoME+TJa1xbfczRbw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrudeigddviecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpefftefhfeegjeeugfekgfevkeeuueffteeiieeftddv ueehleetgfeijeelffekfeenucffohhmrghinhepuggvsghirghnrdhorhhgpdhusghunh htuhdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 1 Nov 2022 20:40:37 -0400 (EDT) Message-ID: <8a3deda3-73ba-25bf-527d-dba758156e5f@aklaver.com> Date: Tue, 1 Nov 2022 17:40:36 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: Putting the O/S user for "local" "peer" authentication in the "postgres" group vs chmod'ing the "pg*.conf" files to be readable by "all" To: Bryn Llewellyn , "David G. Johnston" Cc: pgsql-general list , "Peter J. Holzer" , laurenz.albe@cybertec.at, Karsten Hilbert References: <5EDD4790-7982-4610-8371-9E7F9C7F960B@yugabyte.com> <4B667995-647F-48BB-94CC-22ADE19F0BFB@yugabyte.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: <4B667995-647F-48BB-94CC-22ADE19F0BFB@yugabyte.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/1/22 13:20, Bryn Llewellyn wrote: >> david.g.johnston@gmail.com wrote: >> > > > > Here's what my "pg_hba.conf" has: > > *  local   all   bob   peer* > > My experiment shows that my attempt to authorize  as "bob" using > "local", "peer" authorization fails when every config file is readable > only by "owner" and "group". And it shows that a sufficient fix is to > make just "postgresql.conf" readable by "all" (as I believe is the > intention). Of course, an alternative fix (in the sesne that it would > work) would be to have "postgresql.conf" not readable by all but to put > "bob" in the "postgres" group. > > All this leads to an obvious question: > > *«* > *Given that all of the config files have been made readable by "group" > (in contrast to the regime for the data files), what is the intention of > this design? In other words, when is it proper to put an O/S user in the > "postgres" group? After all, if the answer is "never" than no privileges > on "postgres/postgres" files would ever have been granted to "group".* > *»* > > > > > > > -- Adrian Klaver adrian.klaver@aklaver.com