From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
---|---|
To: | soumitra bhandary <soumitra(dot)bhandary(at)hotmail(dot)com>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Installation of Postgres 10.0 and running application with HA without postgres user at OS |
Date: | 2019-03-01 08:39:32 |
Message-ID: | b589ce8c39105d02416f9a2b536e27f7216eab61.camel@cybertec.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
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
From | Date | Subject | |
---|---|---|---|
Next Message | MirrorX | 2019-03-01 12:02:50 | switchover/switchback |
Previous Message | Ron | 2019-03-01 06:07:16 | Re: Installation of Postgres 10.0 and running application with HA without postgres user at OS |