Re: adduser is missing --system

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: jens(at)wilke(dot)org
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: adduser is missing --system
Date: 2017-09-27 22:20:07
Message-ID: CAB7nPqRVxAkxKOKB-fpTjHOhNyOZOE8tKKw2bSyWySDQahZGdQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Thu, Sep 28, 2017 at 6:33 AM, <jens(at)wilke(dot)org> wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/9.6/static/install-short.html
> Description:
>
> Hi,
>
> regarding
> https://www.postgresql.org/docs/9.6/static/install-short.html
>
> adduser postgres
> should be
> adduser --system postgres
>
> otherwise you might face
> *PANIC: queueing for lock while waiting on another one
>
> due to systemd Config with RemoveIPC=true

This part of the documentation is really aimed at being short. Please
note as well that this has been added to the documentation of Postgres
10 with this commit:
commit: fbe7a3fa45f360e73ce141e51005a3e86cd1926c
author: Peter Eisentraut <peter_e(at)gmx(dot)net>
date: Wed, 15 Feb 2017 10:46:31 -0500
doc: Add advice about systemd RemoveIPC

Reviewed-by: Magnus Hagander <magnus(at)hagander(dot)net>

Here is the link to it:
https://www.postgresql.org/docs/devel/static/kernel-resources.html#systemd-removeipc
And the important quote:
"Packaging and deployment scripts should be careful to create the
postgres user as a system user by using useradd -r, adduser --system,
or equivalent."
--
Michael

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2017-09-27 22:46:07 Re: adduser is missing --system
Previous Message jens 2017-09-27 21:33:44 adduser is missing --system