Re: Permissions issue? - Mailing list pgsql-general

From Christopher Murtagh
Subject Re: Permissions issue?
Date
Msg-id 1071691190.6918.1.camel@brahma.wcg.mcgill.ca
Whole thread Raw
In response to Re: Permissions issue?  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Responses Re: Permissions issue?
Re: Permissions issue?
List pgsql-general
On Wed, 2003-12-17 at 13:54, Stephan Szabo wrote:
> I think you probably want to revoke create on the public schema. Create on
> databases controls the creation of schemas.
> From the grant page:

 Hrm, thanks for the reply. I tried that too. Here's what I got (below).
Am I missing something obvious?


[chris@torvalds chris]$ createuser newuser
Shall the new user be allowed to create databases? (y/n) n
Shall the new user be allowed to create more new users? (y/n) n
CREATE USER
[chris@torvalds chris]$ psql chris
Welcome to psql 7.4RC2, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help on internal slash commands
       \g or terminate with semicolon to execute query
       \q to quit

chris=# REVOKE ALL ON SCHEMA public FROM newuser;
REVOKE
chris=# REVOKE ALL ON DATABASE chris FROM newuser;
REVOKE
chris=# \q
[chris@torvalds chris]$ psql chris -U newuser
Welcome to psql 7.4RC2, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help on internal slash commands
       \g or terminate with semicolon to execute query
       \q to quit

chris=> create table foo(bar integer);
CREATE TABLE
chris=> insert into foo values (1);
INSERT 6274026 1
chris=> select * from foo;
 bar
-----
   1
(1 row)



pgsql-general by date:

Previous
From: Don Isgitt
Date:
Subject: Re: [real] Re: copy command problem
Next
From: Tom Lane
Date:
Subject: Re: Permissions issue?