pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: How do the Linux distributions create the Linux user/group "postgres"?
Date: Mon, 9 Jan 2023 08:11:35 -0600
Message-ID: <43c0a715-9bb0-b679-469b-b64ddacd4139@gmail.com> (raw)
In-Reply-To: <29d6cd01-df1d-e009-9293-2229d5ba3d19@joeconway.com>
References: <20230109124157.GA11@sh4-5.1blu.de>
	<29d6cd01-df1d-e009-9293-2229d5ba3d19@joeconway.com>

On 1/9/23 07:15, Joe Conway wrote:
> On 1/9/23 07:41, Matthias Apitz wrote:
>> Please note: I'm talking about the user and group "postgres" in the
>> Linux OS and not in the PostgreSQL server.
>>
>> We're compiling PostgreSQL from source (actually 14.1) and distribute that
>> to our customers. They're asked to setup user and group "postgres"
>> before creating the cluster. As nowadays there are a lot of setup such
>> things in bigger installations, like LDAP or AD, etc. I'd like to know
>> how other installations for Linux deal with this?
>
> See for example the PGDG RPM spec file:
>
> https://git.postgresql.org/gitweb/?p=pgrpms.git;a=blob;f=rpm/redhat/main/non-common/postgresql-15/ma... 
>
>
> 8<-------------------
> %pre server
> groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
> useradd -M -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
>     -c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
> 8<-------------------

What if (for example in an already-installed package) uid and gid 26 already 
exist?

-- 
Born in Arizona, moved to Babylonia.





view thread (7+ messages)  latest in thread

Message-ID: <43c0a715-9bb0-b679-469b-b64ddacd4139@gmail.com>
Permalink:  ../43c0a715-9bb0-b679-469b-b64ddacd4139@gmail.com/
Also on:    postgresql.org/message-id/43c0a715-9bb0-b679-469b-b64ddacd4139@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: How do the Linux distributions create the Linux user/group "postgres"?
  In-Reply-To: <43c0a715-9bb0-b679-469b-b64ddacd4139@gmail.com>
  References: <20230109124157.GA11@sh4-5.1blu.de> <29d6cd01-df1d-e009-9293-2229d5ba3d19@joeconway.com> <43c0a715-9bb0-b679-469b-b64ddacd4139@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox