From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Hilary Forbes <hforbes@dmr.co.uk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Help with privilages please
Date: Thu, 20 Jul 2006 13:17:10 -0700 (PDT)
Message-ID: <20060720131417.A89811@megazone.bigpanda.com> (raw)
In-Reply-To: <5.1.0.14.0.20060720145514.03833140@mailserver.dmr.co.uk>
References: <5.1.0.14.0.20060720145514.03833140@mailserver.dmr.co.uk>
On Thu, 20 Jul 2006, Hilary Forbes wrote:
> Dear All
>
> We are running pg v 7.4.1 and importantly the database has been
> converted from earlier versions of pg (6.5 I seem to recall).
>
> I have an existing table suppliers and I have created a new user 'hilary'
>
> REVOKE ALL on TABLE suppliers FROM hilary;
>
> now login as hilary
> SELECT * from suppliers;
> and I get all the records!!!
This probably means that "public" also has rights on suppliers (and thus,
the user still has access through the public permissions). You can
probably get around this by revoking the public rights and granting rights
explicitly to the users that should have rights.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sszabo@megazone.bigpanda.com, hforbes@dmr.co.uk
Subject: Re: Help with privilages please
In-Reply-To: <20060720131417.A89811@megazone.bigpanda.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