Re: security issue - database user - Mailing list pgsql-admin

From Tim Ellis
Subject Re: security issue - database user
Date
Msg-id 20020805101642.106897a9.Tim.Ellis@gamet.com
Whole thread Raw
In response to security issue - database user  ("John Madden" <jmadden@ivytech.edu>)
List pgsql-admin
On Mon, 5 Aug 2002 11:01:34 -0500 (EST)
"John Madden" <jmadden@ivytech.edu> wrote:

> (My apologies if this has been posted before - as you'll see, this isn't
> the easiest thing to find in the archives.)
> [SNIP]
> I can't modify/etc. any existing tables, as one would expect, but:
>
> somedb=> CREATE TABLE mytable(test text);
> CREATE
>
> Why is this allowed?  Any way to prevent it?  We've got a lot of users
> working on a development server that obviously has hba to quite a few
> databases...

I've seen it asked a few times on this list. Answer: future version of
Postgres will allow permissions to create tables to be defined. Current
versions of Postgres do not, so you can't curtail this behaviour.

If it were me, and it was REALLY IMPORTANT to disallow unauthorised
tables, I'd create a new table with a list of legit tables and have a
cronjob run every say 5 minutes that DROPS tables that don't belong in the
database.

--
Tim Ellis
Senior Database Architect
Gamet, Inc.

pgsql-admin by date:

Previous
From: "Adonis Damian"
Date:
Subject: pgsql for Solaris 8 (SPARC)
Next
From: Tim Ellis
Date:
Subject: Re: pgsql for Solaris 8 (SPARC)