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 1opAuj-0007Wp-UX for pgsql-general@arkaria.postgresql.org; Sun, 30 Oct 2022 16:11:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1opAui-0000bo-QQ for pgsql-general@arkaria.postgresql.org; Sun, 30 Oct 2022 16:11:56 +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 1opAui-0000bf-En for pgsql-general@lists.postgresql.org; Sun, 30 Oct 2022 16:11:56 +0000 Received: from mout.gmx.net ([212.227.15.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opAug-000624-GF for pgsql-general@lists.postgresql.org; Sun, 30 Oct 2022 16:11:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1667146313; bh=GimG9aby110zxjJGzsUmsg/UB1TeeflQLmADHjjnb38=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=kfv22/d8dS4vdp0FHvrHqfzG8C0C32tyzoixRgU/g0sKzoc6/dWxHYV1drXJ0ljdM c1cOJK1pvUZOAR7RbAntRKnzjXSegpzpT28OoXMWZYQQs2cNPjFm043Q6Z6MFP4myX zaA748fZ64IwWUi6tWpPwybsxEkqPbkuhjNt6bZ+5TY2/1P6ejYO9E517spTGKc4vr 1nffJwFpBwpkfb4r/WuuEaH119S/cuci0Xy0BrMqL/LtivoufIhuDeBr1a4beoPYWz LdrEaIBqSvMTI2WKW3JnG/5hDV74/IAixxuHS1wJ7b47GVYEnygYhilS8E1G0/Yiy8 dZzpVWRVukgmQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from hermes ([84.144.222.105]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M9o1v-1ojyO53sHt-005uJo for ; Sun, 30 Oct 2022 17:11:53 +0100 Received: from ncq by hermes with local (Exim 4.94.2) (envelope-from ) id 1opAue-00038X-7M for pgsql-general@lists.postgresql.org; Sun, 30 Oct 2022 17:11:52 +0100 Date: Sun, 30 Oct 2022 17:11:52 +0100 From: Karsten Hilbert To: pgsql-general@lists.postgresql.org Subject: Re: "peer" authentication: cannot make "pg_ident.conf" work as I believe that the doc says that it should Message-ID: References: <9801E977-425C-41BF-B024-19BC875940C0@icloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Ma_X_il-Followup-to: d Re_X_turn-receipt-to: Karsten.Hilbert@gmx.net Di_X_sposition-Notification-To: Karsten.Hilbert@gmx.net X-Confi_X_rm-Reading-To: Karsten.Hilbert@gmx.net X-Pri_X_ority: 2 (High) Sender: X-Provags-ID: V03:K1:KiAuEciBUe5QAoSrTj6/3Ol2WfQAKNZYECgFCjxEkOVjzD1dQ9m 0OYCZAIQyKSYT7aBfRuf+sOav7o/bMIsIWAjOsrvXjXbK3rT+5jXuAcNwBxNz8Ry/HOFogM Jnw1OTQS88Flpa1nZyQALFTlvoVCp+caQhuVhrFo5qcb1Bvo1b96baWjHGV6aegFkQNpCnw LbeLt6hH1AJ7gkpbFBqdw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:DCmW91c19Zk=;pdf1cjoyLCiVM4f6ORCur97mqPu 7kQcD1gRArXeR9lDvzUonk8fZ8xKSHJEKCkoT6QBk8f+NU/6MJ2p5GPHkGrjJ367ax4NH3+cC FvHbKr3N9WsnD54j+CNGjbhP4laN/m+bOtP/yr+u51Zy68xI45yFTayn8uQDBPw5SiPD+VwZt 2uURz5UE0cNTSsov/QVJAjqP4HVFIjyQSjdg2hGypGOWLJoyIckgNFSETyCtVDwGvQ83rIdkM cHw7XEAq08TWcSR2Xb0Cca7DLDiBelP3b90bARhhpe+N9ectpQi1B1zC7kD+fzZ3GtDyFYy+t LCy0cvt4FZYpQGPa9hF15dsoIAfb1Vdcyt/gn+fFvpbOyVRktQQcyTL6FNlNqqBsE/Oaw75zD sjiFFBSgM4/b8LEi8j2tsFmop28o1z7EVSSCPN+YQeDs2mmLxSavFo29yxRlBoGWQhyOB7330 dIsaBopTmcwoUb9ocWyAS9Pb0DSUQulM147xeweT66KHN+x67rREAEYl2obZGNOBr7nPR0tXB aNUHNRAJBYqkkWOMeXWsT6Vj/27TFohfscqsliVZxzZeafcLTdugNZPJL4jIuwUkYZUD5tRYR 1d+Nj2ke5iBSP2K+QhtVSPp/zv4SgGzDBXo4kDfj0naV9igrCYapQf/mj/efCQQxCw0LPQsE7 6/9NtI7Q+wJxokuAzOAtEbKyOYezNT6fDoMm0fayXPjEgD1AiR+jD17dhHV65wS2zGnVI573q kSgc9isTlIFlHDKiyBp6kTrzEygW9Aul0oMfldh5CbI1V290gTiSxL5avaSv7Pop1r2tmLxts lI/FG9z28QucAyHQWRWOZizE/PrVHy2gNAR8Er7dR+/8al8VPkzrLhw63tXn5q3Ve/LKjo6ht hBHq7aNf4IGSRqcDnEUFrOrxj4afN+2uBVL0Z4H+H6GNU5XXyYDbPisFvNq6XQPXT1vNHoBaK 99roCA== Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Am Sat, Oct 29, 2022 at 08:20:50PM -0700 schrieb Bryn Llewellyn: > For the purpose of the tests that follow, I set up the O/S users "bob" a= nd "mary" so that "id bob mary postgres" shows this: > > id=3D1002(bob) gid=3D1001(postgres) groups=3D1001(postgres) > uid=3D1003(mary) gid=3D1001(postgres) groups=3D1001(postgres) > uid=3D1001(postgres) gid=3D1001(postgres) groups=3D1001(postgres),27(sud= o),114(ssl-cert) > > And I set up the cluster-roles "bob" and "mary" so that "\du" shows this= : > > bob | |= {} > mary | |= {} > postgres | Superuser, Create role, Create DB, Replication, Bypass RLS |= {} Just a hint: you may want to use "mary_os" and "mary_db", respectively, such that error messages can become less ambivalent... (same for bob*). Karsten =2D- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B