pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Database Permissions
2+ messages / 2 participants
[nested] [flat]

* Database Permissions
@ 2003-04-16 18:23  Blake Crosby <me@blakecrosby.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Blake Crosby @ 2003-04-16 18:23 UTC (permalink / raw)
  To: pgsql-admin

Hello,

Currently users who dont own a specific database can still create 
tables in that database:

bcrosby=> \c fox
You are now connected to database fox.
fox=> create table testing (id serial);
NOTICE:  CREATE TABLE will create implicit sequence 'testing_id_seq' 
for SERIAL column 'testing.id'
NOTICE:  CREATE TABLE / UNIQUE will create implicit index 
'testing_id_key' for table 'testing'
CREATE

Is there any way around this? I am  using postgresql version 7.2. My 
pg_hba.conf contains:

local        all                                           password
host         all         127.0.0.1     255.255.255.255     password

Blake




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

* Re: Database Permissions
@ 2003-04-16 18:34  Bruno Wolff III <bruno@wolff.to>
  parent: Blake Crosby <me@blakecrosby.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Bruno Wolff III @ 2003-04-16 18:34 UTC (permalink / raw)
  To: Blake Crosby <me@blakecrosby.com>; +Cc: pgsql-admin

On Wed, Apr 16, 2003 at 14:23:02 -0400,
  Blake Crosby <me@blakecrosby.com> wrote:
> Hello,
> 
> Currently users who dont own a specific database can still create 
> tables in that database:
> 
> bcrosby=> \c fox
> You are now connected to database fox.
> fox=> create table testing (id serial);
> NOTICE:  CREATE TABLE will create implicit sequence 'testing_id_seq' 
> for SERIAL column 'testing.id'
> NOTICE:  CREATE TABLE / UNIQUE will create implicit index 
> 'testing_id_key' for table 'testing'
> CREATE
> 
> Is there any way around this? I am  using postgresql version 7.2. My 
> pg_hba.conf contains:

Not in 7.2. In 7.3 you can limit who can create schemas in a database and
who can create objects in a schema. There is also a separate control for
creating temporary tables in a database. This should let you do what you
want.




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


end of thread, other threads:[~2003-04-16 18:34 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-16 18:23 Database Permissions Blake Crosby <me@blakecrosby.com>
2003-04-16 18:34 ` 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