From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joe Maldonado <jmaldonado@webehosting.biz>
Cc: pgsql-admin@postgresql.org
Subject: Re: REVOKE not working...
Date: Wed, 20 Oct 2004 23:34:04 -0400
Message-ID: <10987.1098329644@sss.pgh.pa.us> (raw)
In-Reply-To: <41767366.7040305@webehosting.biz>
References: <41767366.7040305@webehosting.biz>
Joe Maldonado <jmaldonado@webehosting.biz> writes:
> But when I issue a REVOKE CREATE ON DATABASE mydb FROM myuser;
> The user can still create tables...
CREATE privilege on a database concerns the right to create schemas
within the database. Whether you can create tables within a schema
is a different privilege on a different object. In particular, the
default setup is that everyone can create tables within the "public"
schema in each database. Revoke CREATE on that (from PUBLIC, not just
myuser) and you'll start to get somewhere.
regards, tom lane
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, jmaldonado@webehosting.biz
Subject: Re: REVOKE not working...
In-Reply-To: <10987.1098329644@sss.pgh.pa.us>
References: <41767366.7040305@webehosting.biz> <10987.1098329644@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