pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Hadley Willan <hadley.willan@deeperdesign.co.nz>
Cc: PGSQL Admin <pgsql-admin@postgresql.org>
Subject: Re: Restricting Groups / Users
Date: Wed, 10 Mar 2004 00:47:59 -0500
Message-ID: <2833.1078897679@sss.pgh.pa.us> (raw)
In-Reply-To: <200403100252.i2A2q2s07085@candle.pha.pa.us>
References: <200403100252.i2A2q2s07085@candle.pha.pa.us>

Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Hadley Willan wrote:
>> I'm running pgsql 7.4.1 and I was wondering if it is possible to
>> restrict users from creating tables.

> Yes, you can control permissions on the public schema and the other
> schemas.

Specifically, revoke their CREATE rights on public (as well as any other
schemas you've created) and revoke their CREATE rights on the database
so they can't create any new schemas to create tables in.

If you are feeling draconian enough to want to prohibit creation of temp
tables as well as regular tables, then also remove TEMP rights at the
database level.  I'm dubious about the usefulness of this though.

			regards, tom lane



view thread (3+ messages)

Message-ID: <2833.1078897679@sss.pgh.pa.us>
Permalink:  ../2833.1078897679@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2833.1078897679@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, pgman@candle.pha.pa.us, hadley.willan@deeperdesign.co.nz
  Subject: Re: Restricting Groups / Users
  In-Reply-To: <2833.1078897679@sss.pgh.pa.us>
  References: <200403100252.i2A2q2s07085@candle.pha.pa.us> <2833.1078897679@sss.pgh.pa.us>

* 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