Re: Permissions issue?
От | Christopher Murtagh |
---|---|
Тема | Re: Permissions issue? |
Дата | |
Msg-id | 1071691190.6918.1.camel@brahma.wcg.mcgill.ca обсуждение исходный текст |
Ответ на | Re: Permissions issue? (Stephan Szabo <sszabo@megazone.bigpanda.com>) |
Ответы |
Re: Permissions issue?
Re: Permissions issue? |
Список | 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 по дате отправления: