Hi Adrian,
Thank you for the link to the documentation however it is the UID and GID of 1001:1001 that is required, not the username which I believe this is intended for? Is there a similar option for UID and GID? Apologies if my original question was not clear in this
manner.
Zac
From: Adrian Klaver <adrian.klaver@xxxxxxxxxxx>
Sent: Monday, 14 October 2024 2:46 PM To: Zac Warham <cazwarham@xxxxxxxxxxx>; pgsql-general@xxxxxxxxxxxxxxxxxxxx <pgsql-general@xxxxxxxxxxxxxxxxxxxx> Subject: Re: Changing postgres User On 10/14/24 13:11, Zac Warham wrote:
> 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 back is that the PrairieLearn production environment user runs 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. Why? Per: https://aus01.safelinks.protection.outlook.com/?url=""> You can have the initdb create the cluster as any user: "-U username --username=username Sets the user name of the bootstrap superuser. This defaults to the name of the operating-system user running initdb. " > > We are currently brainstorming some better ways but if anyone 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://aus01.safelinks.protection.outlook.com/?url=""> > <https://aus01.safelinks.protection.outlook.com/?url="">> > > Thanks, > Zac -- Adrian Klaver adrian.klaver@xxxxxxxxxxx |