Re: Installing Postgres without the postgres user and group on Linux?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Plugge, Joe R(dot)" <JRPlugge(at)west(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Installing Postgres without the postgres user and group on Linux?
Date: 2013-01-23 16:28:36
Message-ID: 20631.1358958516@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Plugge, Joe R." <JRPlugge(at)west(dot)com> writes:
> Is it possible to install and then subsequently run the postgres engine on Linux without creating the postgres user and group? We have some folks implementing LDAP that are resistant to creating a postgres account and group and would rather create machine specific accounts (like one does for Windows with SQL Server).

The server source code has no particular allegiance to any OS username.
You can run it under whatever account you want.

> I always thought that if the postgres user and group were not there upon install (which is done as root), that the installation process would create them for you, am I missing something?

Particular packagings of Postgres might act like that --- for instance,
the Fedora/Red Hat RPMs would try to create such a user&group. But you
did not say whose packaging you were thinking of using. In any case
you could run the executables under some other user ID if you then
adjusted file ownerships and startup scripts appropriately.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Plugge, Joe R. 2013-01-23 16:33:34 Re: Installing Postgres without the postgres user and group on Linux?
Previous Message Prashanth Ranjalkar 2013-01-23 15:45:08 Re: vacuum / analyze parent tables on partitioned tables.