pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Treat <xzilla@users.sourceforge.net>
To: Allan Kamau <kamauallan@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Preventing database access (including valid users in
Date: 27 Sep 2005 10:57:03 -0400
Message-ID: <1127833024.19727.222.camel@camel> (raw)
In-Reply-To: <20050926100933.95050.qmail@web53507.mail.yahoo.com>
References: <20050926100933.95050.qmail@web53507.mail.yahoo.com>

On Mon, 2005-09-26 at 06:09, Allan Kamau wrote:
> Interesting scenario, I have a user who owns database
> objects (tables, sequences) in a database, now I have
> decided not to allow the user by connect to the
> database by excluding the user's username from the
> database – username association in the hba.conf, I
> restarted the server. However the user can still
> connect to the database, and the user can query the
> objects they own but cannot query objects they do not
> own in that database. Is this the expected behaviour

Personally I think you've misconfigured your pg_hba.conf. If you'd like
to send it along with your db version you might be able to get a more
definitive answer.

> and should I explicitly change ownership of the
> objects.
> 

Well, it doesn't make much sense to me to have a bunch of objects in a
database owned by someone who will never be allowed to connect to that
database. 


Robert Treat
-- 
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL




view thread (2+ messages)

Message-ID: <1127833024.19727.222.camel@camel>
Permalink:  ../1127833024.19727.222.camel@camel/
Also on:    postgresql.org/message-id/1127833024.19727.222.camel@camel

 · 

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: xzilla@users.sourceforge.net, kamauallan@yahoo.com
  Subject: Re: Preventing database access (including valid users in
  In-Reply-To: <1127833024.19727.222.camel@camel>
  References: <20050926100933.95050.qmail@web53507.mail.yahoo.com> <1127833024.19727.222.camel@camel>

* 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