pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tim Ellis <Tim.Ellis@gamet.com>
To: John Madden <jmadden@ivytech.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: security issue - database user
Date: Mon, 5 Aug 2002 10:16:42 -0700
Message-ID: <20020805101642.106897a9.Tim.Ellis@gamet.com> (raw)
In-Reply-To: <46234.168.91.2.45.1028563294.squirrel@mail.ivytech.edu>
References: <46234.168.91.2.45.1028563294.squirrel@mail.ivytech.edu>

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.



view thread (2+ messages)

Message-ID: <20020805101642.106897a9.Tim.Ellis@gamet.com>
Permalink:  ../20020805101642.106897a9.Tim.Ellis@gamet.com/
Also on:    postgresql.org/message-id/20020805101642.106897a9.Tim.Ellis@gamet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Tim.Ellis@gamet.com, jmadden@ivytech.edu
  Subject: Re: security issue - database user
  In-Reply-To: <20020805101642.106897a9.Tim.Ellis@gamet.com>
  References: <46234.168.91.2.45.1028563294.squirrel@mail.ivytech.edu> <20020805101642.106897a9.Tim.Ellis@gamet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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