From: Michael Paquier <michael@paquier.xyz>
To: rahimullah.shaheen281@gmail.com
To: pgsql-docs@lists.postgresql.org
Subject: Re: Improvement of clarity in pg_ctl command docummentation
Date: Mon, 17 Jul 2023 17:27:43 +0900
Message-ID: <ZLT7f6ZHRXvOkPYd@paquier.xyz> (raw)
In-Reply-To: <168940066069.41161.1605487621936927399@wrigleys.postgresql.org>
References: <168940066069.41161.1605487621936927399@wrigleys.postgresql.org>
On Sat, Jul 15, 2023 at 05:57:40AM +0000, PG Doc comments form wrote:
> I was reading the documentation about pg_ctl and there everything was well
> written about the usage and option that can be used with the pg_ctl command
> but there is not mentioned that we can not run pg_ctl command as root and
> why we cant run it as root.
Yes, I guess that you are right in the fact that we don't document
pg_ctl cannot be run as root. The short explanation behind this
restriction is that the PostgreSQL backend is considered as having the
same rights as the OS user running it, and we don't want to encourage
unsecure behaviors where systems could be easily compromised.
--
Michael
Attachments:
[application/pgp-signature] signature.asc (832B, ../ZLT7f6ZHRXvOkPYd@paquier.xyz/2-signature.asc)
download
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 using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: michael@paquier.xyz, rahimullah.shaheen281@gmail.com, pgsql-docs@lists.postgresql.org
Subject: Re: Improvement of clarity in pg_ctl command docummentation
In-Reply-To: <ZLT7f6ZHRXvOkPYd@paquier.xyz>
* 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