Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ADMIN] running postgresql with a different id other than postgres user

8 views
Skip to first unread message

Maki Smith (US - IFS)

unread,
Jul 19, 2016, 3:18:23 PM7/19/16
to
To meet our security requirement, we would like to use another account other than postgres to install and run postgreSQL.  Is this possible to do?

Thank you for information
-----------------------------------------------------------------------------------------------------------------------------------------
Maki Smith

The information transmitted, including any attachments, is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited, and all liability arising therefrom is disclaimed. If you received this in error, please contact the sender and delete the material from any computer. PricewaterhouseCoopers LLP is a Delaware limited liability partnership. This communication may come from PricewaterhouseCoopers LLP or one of its subsidiaries.

Gilberto Castillo

unread,
Jul 19, 2016, 3:23:53 PM7/19/16
to

> To meet our security requirement, we would like to use another account
> other than postgres to install and run postgreSQL. Is this possible to
> do?
>
> Thank you for information

Yes, create other user with privilegius of user postgre

> -----------------------------------------------------------------------------------------------------------------------------------------
> Maki Smith
>
> ______________________________________________________________________
> The information transmitted, including any attachments, is intended only
> for the person or entity to which it is addressed and may contain
> confidential and/or privileged material. Any review, retransmission,
> dissemination or other use of, or taking of any action in reliance upon,
> this information by persons or entities other than the intended recipient
> is prohibited, and all liability arising therefrom is disclaimed. If you
> received this in error, please contact the sender and delete the material
> from any computer. PricewaterhouseCoopers LLP is a Delaware limited
> liability partnership. This communication may come from
> PricewaterhouseCoopers LLP or one of its subsidiaries.
>


--
Saludos,
Gilberto Castillo
ETECSA, La Habana, Cuba



--
Sent via pgsql-admin mailing list (pgsql...@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Maki Smith (US - IFS)

unread,
Jul 19, 2016, 3:26:59 PM7/19/16
to
Is it possible we can use other user during installation?
Any concern of future patching and upgrade activity?  


-----------------------------------------------------------------------------------------------------------------------------------------
Maki Smith US IT - Technical Design Authority Infrastructure | PricewaterhouseCoopers LLP 
4040 West Boy Scout Boulevard, Tampa, FL 33607 | Phn: 1.813.351.2481 | Fax: 1.813.375.6084 | RightFax: 1.813.375.6087 | Notes: maki....@us.pwc.com | gmail: maki....@pwc.com

On Tue, Jul 19, 2016 at 4:22 PM, Gilberto Castillo <gilberto...@etecsa.cu> wrote:

> To meet our security requirement, we would like to use another account
> other than postgres to install and run postgreSQL.  Is this possible to
> do?
>
> Thank you for information

Yes, create other user with privilegius of user postgre

> -----------------------------------------------------------------------------------------------------------------------------------------
> Maki Smith
>
> ______________________________________________________________________
> The information transmitted, including any attachments, is intended only
> for the person or entity to which it is addressed and may contain
> confidential and/or privileged material. Any review, retransmission,
> dissemination or other use of, or taking of any action in reliance upon,
> this information by persons or entities other than the intended recipient
> is prohibited, and all liability arising therefrom is disclaimed. If you
> received this in error, please contact the sender and delete the material
> from any computer. PricewaterhouseCoopers LLP is a Delaware limited
> liability partnership.  This communication may come from
> PricewaterhouseCoopers LLP or one of its subsidiaries.
>


--
Saludos,
Gilberto Castillo
ETECSA, La Habana, Cuba


David G. Johnston

unread,
Jul 19, 2016, 3:36:23 PM7/19/16
to
On Tue, Jul 19, 2016 at 3:16 PM, Maki Smith (US - IFS) <maki....@pwc.com> wrote:
To meet our security requirement, we would like to use another account other than postgres to install and run postgreSQL.  Is this possible to do?


​You need to tell us by what method you intend to install PostgreSQL, and on what platform, before this can be usefully answered.​

The documentation covers how to go about installing from source.  It should cover how to choose a label different than "postgres" if you so desire.

David J.

Wolfgang Wilhelm

unread,
Jul 20, 2016, 4:17:46 AM7/20/16
to
Hello,

a little more information would be helpful.
But to make things short: The user who starts the initdb command is the database admin user. When you install PostgreSQL via the tool of your distribution like apt (Debian), yum or whatever then the package manager generates the user postgres and executes initdb as user postgres.

Kind regards,
Wolfgang

Maki Smith (US - IFS)

unread,
Jul 20, 2016, 7:11:22 AM7/20/16
to
I successfully installed from source with a different user other than postgres on Ubuntu.
However now I am curious we can do any modification like this when I install PostgreSQL via the tool, like apt-get or yum.
As you mentioned, these tools creates postgres user automatically. 

If we use a tool like this, we need to create another superuser as post-installation procedure to switch user, and stop usage of postgres default user..

Just curious.. how people is doing this type of scenario...


-----------------------------------------------------------------------------------------------------------------------------------------
Maki Smith US IT - Technical Design Authority Infrastructure | PricewaterhouseCoopers LLP 
4040 West Boy Scout Boulevard, Tampa, FL 33607 | Phn: 1.813.351.2481 | Fax: 1.813.375.6084 | RightFax: 1.813.375.6087 | Notes: maki....@us.pwc.com | gmail: maki....@pwc.com

Kris Deugau

unread,
Jul 20, 2016, 4:18:53 PM7/20/16
to
Maki Smith (US - IFS) wrote:
> I successfully installed from source with a different user other than
> postgres on Ubuntu.
> However now I am curious we can do any modification like this when I
> install PostgreSQL via the tool, like apt-get or yum.
> As you mentioned, these tools creates postgres user automatically.
>
> If we use a tool like this, we need to create another superuser as
> post-installation procedure to switch user, and stop usage of postgres
> default user..
>
> Just curious.. how people is doing this type of scenario...

Can you explain your security requirement in more detail? It sounds to
me like you're going to a lot of effort for something that isn't going
to do what you want to do, or what you think it'll do.

It may also cause issues on package upgrades, because the packages will
continue to operate on the assumption that the username created by the
package is the one that Postgres is running under. You'd likely end up
running Postgres in a by-hand enough manner that you may as well just
install from source anyway.

-kgd
0 new messages