problem with grant/revoke

From: Jerome ALET <alet(at)unice(dot)fr>
To: pgsql-sql(at)postgresql(dot)org
Subject: problem with grant/revoke
Date: 2000-02-23 13:32:30
Message-ID: Pine.LNX.3.96.1000223141504.9278A-100000@cortex.unice.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

First I have to say that I wanted to search for this problem in the
mailing list archive, but each time I've tried it seemed the search engine
was halted or something because it timed out, so I've subscribed to this
list.

I use postgresql v6.5.2 and encounter a problem with permissions:

pcietest=> CREATE USER bob;
CREATE USER

pcietest=> GRANT ALL ON requete TO bob;
CHANGE

pcietest=> REVOKE DELETE ON requete FROM bob;
CHANGE

pcietest=> \connect pcietest bob
connecting to new database: pcietest as user: bob

pcietest=> UPDATE requete SET coderequete = 'hello' WHERE nomrequete =
'something';
ERROR: requete: Permission denied.

pcietest=> \connect pcietest jerome
connecting to new database: pcietest as user: jerome

pcietest=> GRANT DELETE ON requete TO bob;
CHANGE

pcietest=> \connect pcietest bob
connecting to new database: pcietest as user: bob

pcietest=> UPDATE requete SET coderequete = 'hello' WHERE nomrequete =
'something';
UPDATE 1

pcietest=>

it seems exactly like if the DELETE and UPDATE permissions were mapped to
the same thing, which is IMHO totally incorrect.

what do I do wrong ?
is it a bug or something ?

thanks for any help.

Jerome ALET - alet(at)unice(dot)fr - http://cortex.unice.fr/~jerome
Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE

Browse pgsql-sql by date

  From Date Subject
Next Message Robin Keech 2000-02-23 14:25:25 capturing microseconds & computing difference between two dates
Previous Message Kovacs Zoltan Sandor 2000-02-23 12:24:34 Re: [SQL] SQL Script Question