Re: Permissions - Mailing list pgsql-novice

From David G. Johnston
Subject Re: Permissions
Date
Msg-id CAKFQuwYKumXtN5Vy=wbYoa+-khAiC-QpjJ5d+chT36gpkSvs7g@mail.gmail.com
Whole thread Raw
In response to Permissions  (Andre Labuschagne <technical@eduadmin.com>)
Responses Re: Permissions
List pgsql-novice
On Tue, Sep 20, 2016 at 11:27 AM, Andre Labuschagne <technical@eduadmin.com> wrote:
Hi All

We are looking at using PG for a project.  The critical thing with this project is that only the owner of the database created must have access to it.  There must be no superuser that can access it. Is this possible with PG?

​That level of security requires that the O/S and physical access to the listening socket be restricted.  Within PostgreSQL itself a cluster superuser (all users are defined at the cluster level, not individual databases) can do anything to any of the databases within the cluster.

In short, what you want might be possible but more detailed guidance would require specifics about the O/S and exactly what level of "superuser" access you are concerned about.  

You would most likely need to create a cluster where the only user is the one in question and is made a superuser themselves - they can then choose to create more restricted roles if they desire.  Any setup where the database owner is not themselves a superuser is not going to work - since every cluster must have at least one superuser./

David J.

pgsql-novice by date:

Previous
From: Andre Labuschagne
Date:
Subject: Permissions
Next
From: Andre Labuschagne
Date:
Subject: Re: Permissions