pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: soumitra bhandary <soumitra.bhandary@hotmail.com>
To: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Installation of Postgres 10.0  and running application with HA without postgres user at OS
Date: Fri, 01 Mar 2019 09:39:32 +0100
Message-ID: <b589ce8c39105d02416f9a2b536e27f7216eab61.camel@cybertec.at> (raw)
In-Reply-To: <MA1PR01MB3548B99882021F0283A2B330E0760@MA1PR01MB3548.INDPRD01.PROD.OUTLOOK.COM>
References: <MA1PR01MB3548B99882021F0283A2B330E0760@MA1PR01MB3548.INDPRD01.PROD.OUTLOOK.COM>

soumitra bhandary wrote:
> I am using RHEL to install Postgres 10 and setting up replication . But in my OS no postgres user exists .
> Installed it with sudo access . Can I run the postgres DB with all it's utility (like psql, vaccumdb ,
> pg_rewind , initdb etc.) along with Master slave replication, archival process without postgres user. 
> 
> If it can be done , do I need to follow any extra step to the os user apart from postgres ?
> 
> Is there any way to skip postgres os user ?

If you use the RPM packages from the PostgreSQL download page, as I would recommend,
a user "postgres" will be created automatically.

You can of course remove the user again, but you will need a user different
from "root" to run PostgreSQL.

PostgreSQL will refuse to start under the "root" user for security reasons.
It is not commendable to run any software as "root" unless absolutely necessary.

Mind you, "postgres" is *not* the owner of the executables (this is not Oracle), but
the owner of the database files and processes.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com





view thread (12+ messages)  latest in thread

Message-ID: <b589ce8c39105d02416f9a2b536e27f7216eab61.camel@cybertec.at>
Permalink:  ../b589ce8c39105d02416f9a2b536e27f7216eab61.camel@cybertec.at/
Also on:    postgresql.org/message-id/b589ce8c39105d02416f9a2b536e27f7216eab61.camel@cybertec.at

 · 

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-admin@postgresql.org
  Cc: laurenz.albe@cybertec.at, soumitra.bhandary@hotmail.com
  Subject: Re: Installation of Postgres 10.0  and running application with HA without postgres user at OS
  In-Reply-To: <b589ce8c39105d02416f9a2b536e27f7216eab61.camel@cybertec.at>
  References: <MA1PR01MB3548B99882021F0283A2B330E0760@MA1PR01MB3548.INDPRD01.PROD.OUTLOOK.COM> <b589ce8c39105d02416f9a2b536e27f7216eab61.camel@cybertec.at>

* 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