Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzdhw-0002rR-1T for pgsql-admin@arkaria.postgresql.org; Fri, 01 Mar 2019 08:39:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gzdhu-0000Ra-Sx for pgsql-admin@arkaria.postgresql.org; Fri, 01 Mar 2019 08:39:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzdhu-0000RS-Hd for pgsql-admin@lists.postgresql.org; Fri, 01 Mar 2019 08:39:50 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzdhr-0003VC-7E for pgsql-admin@lists.postgresql.org; Fri, 01 Mar 2019 08:39:49 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id DC98C4B811; Fri, 1 Mar 2019 09:39:44 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=MBO0001; t=1551429583; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qMn8rZvTji/U6Cx4R9MK96jSJVgN4dqf0qWWgqglga4=; b=X1EPd+nYZKIS3X9OuRiKSfSeMR3Iagq/2hbxtsSezYJLYTGtg+PP0GLVtX6JnXD5mNpjgm wAEGG0P1P53Lj7gouh6XVu/fhN+U+iB7J3mbIzgHhQIYIv59aFy76CPO1oGWR5Rb7qmKE1 uM27dcZZ92qi4KcaNR261nqZ5farPgtjmkZLpBvWE2f8Rm1XuiEjc7bFsFd8/allhIZdoU h/ABP1tVkP9PdeuGcfTiwOffysy6eTHogMxT4JrAV9uBQYSKotEKU5Ne/FqqowDcxcpmfl TanF1YUZJMkIF1VNhUr96uajOWcPLR8ubudukKW5ifzGs3Ecp4wCQNxBRNLI3A== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id 5h02o3TMZ_0S; Fri, 1 Mar 2019 09:39:36 +0100 (CET) Message-ID: Subject: Re: Installation of Postgres 10.0 and running application with HA without postgres user at OS From: Laurenz Albe To: soumitra bhandary , "pgsql-admin@lists.postgresql.org" , "pgsql-admin@postgresql.org" Date: Fri, 01 Mar 2019 09:39:32 +0100 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Authentication-Results: default_out X-Rspamd-Queue-Id: 1320F169A List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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