Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t0RQ8-00BSBe-OT for pgsql-general@arkaria.postgresql.org; Mon, 14 Oct 2024 20:12:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t0RQ6-00Gpgk-LO for pgsql-general@arkaria.postgresql.org; Mon, 14 Oct 2024 20:11:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t0RQ6-00Gpgc-2t for pgsql-general@lists.postgresql.org; Mon, 14 Oct 2024 20:11:58 +0000 Received: from mail-sy4aus01olkn2022.outbound.protection.outlook.com ([40.92.62.22] helo=AUS01-SY4-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t0RQ3-000t3i-HE for pgsql-general@lists.postgresql.org; Mon, 14 Oct 2024 20:11:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LHK4ToshDz6FZMWczzZbZwARgp6HHbhGgOS+9lBlA1xWGgt33Q/i7k8kdjD9nEXutaTuDnGuQ/NWvyCzkTY5JfYKc3c+0gZZjh/bvhgIaJleiuncIJfNp8mwRy4xByPhTxlRs3wy7ZK4H6RQO4KtnyDLCUCA0CJY1C2xFXXcEY3Eb1TQn6rWatwVeispI6PfP2ibpdJbMXY5HygF2imsYFXqHi1Qb53eGkyjXW4bEXGplGNoX5lHudXAEQ+jS32uGCMuRqWOFLNw8pR73Q1RvHnRR7gRw4OQrAybpNteOSi3N7ZIecynD5W14JUk9KCtfptlyLpG8QZQnzrRu7mFyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wwypMj/R1s390+/muHtHQVcfHLomqa8hny3ZZrKINdQ=; b=R0QR9PW3LoFYNmgxF+P5hVqh+X3oVUsvWH7AhfhDFzXtGj/AK9lIpXvPyRLRlaT0CFMJv+H/0RuCJSS8h3HTIgziz9iAfGpea2dod/vX6HfqyxdsSFf4eOJL9PlfVWsXCEKtJyu5gvppisRf9du7/Wx0pR6ZiXKX4E1eDNbjaiqytFJ7GaMddqbHFjZxZgEK22ujPRrnCF2Ru0TSFR5Se71E+LwDbdDrdFUwQxEp87kn6IfUjR58Pc8LFH4fVa+RjgL+v9CmxA6RRYftTAyP3imglnQECk+qPINvKrYVb+aglEbTENFbD/Dv2d7W1IQk9WjqMSUOHYf69gMd2e0rSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wwypMj/R1s390+/muHtHQVcfHLomqa8hny3ZZrKINdQ=; b=GPEoalfNHDUjhx/UcX5AgRE6XoL6qRdOJHmcsWszJb4m4TNXHexAFn6S/LCk5YR08DtsYqm7okKDa6Rd5vNgcNoBUAH6InT9IxmrHT2rGbVAmkvPg8xkYSkC9jH8vzHax4Hql/E1zoDPxdAgrPdrLf6etKnoHMtEuNvzgwHFZNjkqXfwTApm6KwRcq7JXCb9jA+VrNmrxFlPFTYiP9OAwYVtq9kBiP9RGY8RwpdXnx6qdo+rxqQi5HJn6r9zwZmxu2CAQ5ll1pfZ3LmVndvyaaoas7DmZrHdnb4TWwkTyuVyBHwDnKPX/fz9nfQFprmyUEN6G7Y486442+aX8alkaw== Received: from ME3P282MB3328.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:135::19) by SY0P282MB5301.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:2a0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.17; Mon, 14 Oct 2024 20:11:49 +0000 Received: from ME3P282MB3328.AUSP282.PROD.OUTLOOK.COM ([fe80::581d:1388:1607:e43]) by ME3P282MB3328.AUSP282.PROD.OUTLOOK.COM ([fe80::581d:1388:1607:e43%6]) with mapi id 15.20.8069.016; Mon, 14 Oct 2024 20:11:49 +0000 From: Zac Warham To: "pgsql-general@lists.postgresql.org" Subject: Changing postgres User Thread-Topic: Changing postgres User Thread-Index: AQHbHnSPvczEV2/ssUq6PpI2wNnPwQ== Date: Mon, 14 Oct 2024 20:11:49 +0000 Message-ID: Accept-Language: en-AU, en-US Content-Language: en-AU X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-reactions: allow x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: ME3P282MB3328:EE_|SY0P282MB5301:EE_ x-ms-office365-filtering-correlation-id: 9612d591-c32b-43aa-bbff-08dcec8c6fe0 x-microsoft-antispam: BCL:0;ARA:14566002|8062599003|9400799024|461199028|12050799009|19110799003|14030799003|8060799006|7092599003|15080799006|440099028|3412199025|4302099013|10035399004|102099032|1602099012; x-microsoft-antispam-message-info: =?us-ascii?Q?7RMLCiuThF6JU6QKNXe8hmGtO1pY3BsJCfujajdF6R7uHkKp/nz3egda2r3D?= =?us-ascii?Q?2QFkWN3PrBB3C7+z4UNW/Od52bMnIF1LUtmXKUPu3wwnDIwVOr6HrF0gN0ac?= =?us-ascii?Q?Pq21v2C2OrMCWPvWhxuLgI+f3C3RHgdnh0O+2hmPAtQuphnX7iVkbSPRuVsf?= =?us-ascii?Q?/30fsgB4zezBQ3yMyBCwH7WUZi4mJHaOsMAo3NbOrIwuPPd7VQX0IZdI0Zmv?= =?us-ascii?Q?MPPDVJioPxHG13ywAvxHFFhBhzaOU4YvatzQjbfROcGxk2FmcK3k/QG7dEsM?= =?us-ascii?Q?5R2XvK7B+v7hGJMF6dHdRqQWvd3F1ErkORgWGsYCKw/k0Nd28Sv4y79qgKSV?= =?us-ascii?Q?RMQMuzXzjjJiXU3sBRTPHwlLSxkLEO6n9Ays1Vj0bME/mSMxd3Mh78XZ6bOy?= =?us-ascii?Q?a0q3Ez7zm5TUINSaFRQKFrGLiooJAlwQqDzuBwejOuKZydE6nh3C5zxEWvNN?= =?us-ascii?Q?EZyr1WbwuEGbWXuHVnppz3zNTt1kdFxbsNTh4hFpF/5s12Xrix5ZctcofwCU?= =?us-ascii?Q?qfGIsbkG6fDhmdpzgZ+j3/gQq3/0Goe7esm8oRyJFZfsQ7YTWL7ZEiKJoGOV?= =?us-ascii?Q?vuUb7s/lI3aIN9odXpt+0ro9pK+xgOPyI5go0UxbhJkH6in7NRRMgrcwAybH?= =?us-ascii?Q?HtkTvIAeg2+piHtxaVWnT5HMJlnN1V/RaUHUj3B+OIIppyvP+OAzKJJm0E5J?= =?us-ascii?Q?M9ZqdjMKETdjtHPLO1mAX2uAMBT+M3TKWV4A6/lzxcgZBiRGVx/rCWVJkQOt?= =?us-ascii?Q?T+VLuEQNdL8roeQhuKHlrcKbUxHV8zeCqZeKvFUg17JkzIq+MKJeOl49Rnhv?= =?us-ascii?Q?qPBtt5zASyO2MkWF1aeQrLIzd45ddKeNgIdMfc5gDnqguVvB4S7lU7IVvoTD?= =?us-ascii?Q?PJq0KZbCAgbYdwBmzEA4ttYPFejAumh3YZAYv1y7iNif6vHTefYk4B0mA3Jc?= =?us-ascii?Q?lghAtxLnUerkwo+rr1rmbA=3D=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?nUUt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FMzrUsgr0GGEPf1HM?= =?us-ascii?Q?KEVzl50D0Y66Qgv6A5GgjrZDc4nk+lT8djuKSWd6Ey1tcw6k8AP1nhqh/UkU?= =?us-ascii?Q?8+qLJSRSwWQnJJX0MQPtemzM5OiPY9ZNXoVKhTi5CylGfpMu807XAiu7JmTe?= =?us-ascii?Q?jJHq7cRmLXs1A5aSHptPDk7Evry2Gzar/qJSrRxgEOMDjQDTr1WHNhfAT9Cv?= =?us-ascii?Q?YGLw2ZLAwoAsS5xEbz10GQv0YUtpuyj0U1Te4P6BsTWbaAXY3FdnhuScpOi0?= =?us-ascii?Q?aq0ruQkxGc76gHI9YQVInm3LC34ib3Ed3mO7Lk4m1muWNpRSbdb4yneUP1sC?= =?us-ascii?Q?iDO8u46SPOHfSu0FkSnIqNdbnMMHrEjv1Ov8fcqB8z/Nm9ZoxWmi+f60b/ir?= =?us-ascii?Q?T9wLQvLhhuEy1pxTa8fF?= Content-Type: multipart/alternative; boundary="_000_ME3P282MB33285BBA32907655287F4AD9B7442ME3P282MB3328AUSP_" MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-7719-20-msonline-outlook-722bc.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: ME3P282MB3328.AUSP282.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 9612d591-c32b-43aa-bbff-08dcec8c6fe0 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Oct 2024 20:11:49.5769 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY0P282MB5301 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_ME3P282MB33285BBA32907655287F4AD9B7442ME3P282MB3328AUSP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, We are trying to setup a postgresql Docker container alongside pgadmin and = caddy for use in the PrairieLearn student testing software. Our main set ba= ck is that the PrairieLearn production environment user runs as user 1001:1= 001 and as such we have had to rename the postgres user within Linux to 100= 1 and alter the credentials management significantly. We are currently brainstorming some better ways but if anyone has any sugge= stions on easier ways to make these changes then we would appreciate them. = The code is open source and can be viewed here - https://github.com/Prairie= Learn/PrairieLearn/pull/10713 Thanks, Zac --_000_ME3P282MB33285BBA32907655287F4AD9B7442ME3P282MB3328AUSP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi,

We are trying to setup a postgresql Docker container alon= gside pgadmin and caddy for use in the PrairieLearn student testing softwar= e. Our main set back is that the PrairieLearn production environment user r= uns as user 1001:1001 and as such we have had to rename the postgres user within Linux to 1001 and alter the= credentials management significantly. 

We are currently brainstorming some better ways but if an= yone has any suggestions on easier ways to make these changes then we would= appreciate them. The code is open source and can be viewed here - https:/= /github.com/PrairieLearn/PrairieLearn/pull/10713

Thanks, 
Zac
--_000_ME3P282MB33285BBA32907655287F4AD9B7442ME3P282MB3328AUSP_--