Re: Keep a user from creating tables ?

From: "Gregory S(dot) Williamson" <gsw(at)globexplorer(dot)com>
To: "Stephan Szabo" <sszabo(at)megazone(dot)bigpanda(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Keep a user from creating tables ?
Date: 2004-05-17 21:53:44
Message-ID: 71E37EF6B7DCC1499CEA0316A2568328DC9C31@loki.wc.globexplorer.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Of course ... implicit in the docs if I reread them.

Thanks very much for the tip ...
G
-----Original Message-----
From: Stephan Szabo [mailto:sszabo(at)megazone(dot)bigpanda(dot)com]
Sent: Monday, May 17, 2004 1:45 PM
To: Gregory S. Williamson
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] Keep a user from creating tables ?

On Mon, 17 May 2004, Gregory S. Williamson wrote:

> Stephan,
>
> Thanks for the info, but alas, no success.
>
> I have:
> List of database users
> User name | User ID | Attributes
> -----------+---------+----------------------------
> testuser | 100 |
> postgres | 1 | superuser, create database
>
>
> And as postgres I ran:
> REVOKE ALL ON SCHEMA public FROM testuser;

I forgot to mention something which led to the confusion.
testuser doesn't probably have permissions on the public schema, but
public (all users) does. You probably need to revoke it from PUBLIC
and grant it to the users who should have creation rights to public.

Browse pgsql-admin by date

  From Date Subject
Next Message Duane Lee - EGOVX 2004-05-17 23:08:34 Hardware Platform
Previous Message Stephan Szabo 2004-05-17 20:45:10 Re: Keep a user from creating tables ?