Skip site navigation (1) Skip section navigation (2)

Role based database access

From: Thomas Mack <mack(at)ifis(dot)cs(dot)tu-bs(dot)de>
To: pgsql-admin(at)postgresql(dot)org
Subject: Role based database access
Date: 2007-05-24 08:42:40
Message-ID: 200705241042.40007.mack@ifis.cs.tu-bs.de (view raw or flat)
Thread:
Lists: pgsql-admin
Hello!

I face a problem here with restricting access to databases to
the owners of the database (Postgres 8.1.4).

We would like any postgres user to have database access restricted
to their own databases only. This is so, as we use postgres for
educational purposes.

I looked into pg_hba.conf, but unfortunately, when restricting
database access in the database field, the NAME(!) of the database
is concerned, which we do not restrict. Any user can create as
many databases as needed, and the name may be choosen freely.

The 'user' field does not help in this either.

So is there any chance to achieve what we need without revoking
the 'create database' permission and pre-creating the databases
for all our users?

Thanks,
Thomas Mack



Responses

pgsql-admin by date

Next:From: FedericoDate: 2007-05-24 08:56:21
Subject: Question about HeapTupleHeaderData
Previous:From: v13nrDate: 2007-05-24 08:42:23
Subject: v13nr wants to chat

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group