pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Grants on creating tables..
3+ messages / 3 participants
[nested] [flat]

* Grants on creating tables..
@ 2003-01-13 21:55  Andrzej Kwiatkowski <kwiatek@tpi.pl>
  0 siblings, 1 reply; 3+ messages in thread

From: Andrzej Kwiatkowski @ 2003-01-13 21:55 UTC (permalink / raw)
  To: pgsql-admin


I've read that in postgres v 7.3 and above is possible to set
permissions for creating tables in given database...

I've tried in many various ways, byt always given user can create
tables in database.

Have you got any idea ?
Maybe some example ??

Thanks in advance
Andrzej Kwiatkowski



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Grants on creating tables..
@ 2003-01-13 22:59  Stephan Szabo <sszabo@megazone23.bigpanda.com>
  parent: Andrzej Kwiatkowski <kwiatek@tpi.pl>
  0 siblings, 1 reply; 3+ messages in thread

From: Stephan Szabo @ 2003-01-13 22:59 UTC (permalink / raw)
  To: Andrzej Kwiatkowski <kwiatek@tpi.pl>; +Cc: pgsql-admin


On Mon, 13 Jan 2003, Andrzej Kwiatkowski wrote:

> I've read that in postgres v 7.3 and above is possible to set
> permissions for creating tables in given database...
>
> I've tried in many various ways, byt always given user can create
> tables in database.

If you remove the create permission from all of the schemas for the user
they shouldn't be able to create non-temporary tables. On my empty 7.4
devel database, after doing

REVOKE CREATE on SCHEMA public FROM public;

a random non-superuser account on the database no longer can create tables
(apart from temporary ones).




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Grants on creating tables..
@ 2003-01-14 07:12  Bruno Wolff III <bruno@wolff.to>
  parent: Stephan Szabo <sszabo@megazone23.bigpanda.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Bruno Wolff III @ 2003-01-14 07:12 UTC (permalink / raw)
  To: Stephan Szabo <sszabo@megazone23.bigpanda.com>; +Cc: Andrzej Kwiatkowski <kwiatek@tpi.pl>; pgsql-admin

On Mon, Jan 13, 2003 at 14:59:58 -0800,
  Stephan Szabo <sszabo@megazone23.bigpanda.com> wrote:
> 
> On Mon, 13 Jan 2003, Andrzej Kwiatkowski wrote:
> 
> > I've read that in postgres v 7.3 and above is possible to set
> > permissions for creating tables in given database...
> >
> > I've tried in many various ways, byt always given user can create
> > tables in database.
> 
> If you remove the create permission from all of the schemas for the user
> they shouldn't be able to create non-temporary tables. On my empty 7.4
> devel database, after doing
> 
> REVOKE CREATE on SCHEMA public FROM public;
> 
> a random non-superuser account on the database no longer can create tables
> (apart from temporary ones).

You also probably want to revoke create on the database so that the person
cannot create schemas in which they could create tables.



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-01-14 07:12 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-01-13 21:55 Grants on creating tables.. Andrzej Kwiatkowski <kwiatek@tpi.pl>
2003-01-13 22:59 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2003-01-14 07:12   ` Bruno Wolff III <bruno@wolff.to>

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