pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stefan Muehlebach <muehlste@student.ethz.ch>
To: pgsql-admin@postgresql.org
Subject: Preventing users from creating tables in certain dbs.
Date: Fri, 16 Jun 2000 14:52:57 +0200 (MET DST)
Message-ID: <Pine.GSO.4.02.10006161430140.1792-100000@raf18> (raw)

Hi there

How can I prevent a user from creating a table in a database that she is
not owner of?

Suppose we have two users: 'mary' and 'fred', both are postgres-users, NOT
allowed to create dbs or users. For both users the db manager already
created a database (named 'mary' and 'fred').

In the standard installation of postgres it is possible for 'mary' and
'fred' to create tables in the database of the other user. How can I
prevent this?

I use this at our school, where every student should be able to have her
own database, but not beeing able to 'pollute' the db of her neighbour.

Thank you in advance for you help.
[mju]




view thread (2+ messages)  latest in thread

Message-ID: <Pine.GSO.4.02.10006161430140.1792-100000@raf18>
Permalink:  ../Pine.GSO.4.02.10006161430140.1792-100000@raf18/
Also on:    postgresql.org/message-id/Pine.GSO.4.02.10006161430140.1792-100000@raf18

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: muehlste@student.ethz.ch
  Subject: Re: Preventing users from creating tables in certain dbs.
  In-Reply-To: <Pine.GSO.4.02.10006161430140.1792-100000@raf18>
  References: <Pine.GSO.4.02.10006161430140.1792-100000@raf18>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox