Re: Linux Users vs PostgreSQL Users

From: Alan Hodgson <ahodgson(at)simkin(dot)ca>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Linux Users vs PostgreSQL Users
Date: 2015-11-10 20:24:14
Message-ID: 1964959.RzZLW81nZ5@skynet.simkin.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Tuesday, November 10, 2015 10:41:35 AM Michael Convey wrote:
> ​Are PostgreSQL roles always associated with a Linux user account? In other
> words, can I have a PostgresSQL user account that is unrelated to any Linux
> account? Is there a detailed tutorial on accounts and roles that explains
> this topic? I found the following confusing:
>
> http://www.postgresql.org/docs/9.3/static/client-authentication.html
> http://www.postgresql.org/docs/9.3/static/user-manag.html
> http://www.postgresql.org/docs/9.3/static/database-roles.html

PostgreSQL roles are created and maintained separately from system accounts.

It is possible to setup PostgreSQL in such a way that it can share
authentication information with identically-named systems accounts, but is not
normally setup that way.

It is common, though, that distributions will setup PostgreSQL in such a way
that it automatically trusts connections from identically named systems
accounts via the Trust authentication method. You can change that in
pg_hba.conf.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Alan Hodgson 2015-11-10 20:31:41 Re: Linux Users vs PostgreSQL Users
Previous Message Felipe Santos 2015-11-10 18:59:48 Re: Linux Users vs PostgreSQL Users