X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 16581D1B43E for ; Sun, 30 Nov 2003 10:20:17 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 27037-06 for ; Sun, 30 Nov 2003 06:19:46 -0400 (AST) Received: from mail.interzone.gr (server.interzone.gr [193.41.229.197]) by svr1.postgresql.org (Postfix) with ESMTP id 5524DD1B446 for ; Sun, 30 Nov 2003 06:19:44 -0400 (AST) Received: by mail.interzone.gr (Postfix, from userid 1005) id 6CE3D1D1E3; Sun, 30 Nov 2003 12:19:27 +0200 (EET) Received: from interzone.gr (ppp1-216.ath.forthnet.gr [213.16.144.216]) by mail.interzone.gr (Postfix) with ESMTP id B1D191CFED for ; Sun, 30 Nov 2003 12:19:25 +0200 (EET) Message-ID: <3FC9C4AE.1080505@interzone.gr> Date: Sun, 30 Nov 2003 12:21:34 +0200 From: Michalis Kabrianis User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Permissions problem on 7.4 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/4 X-Sequence-Number: 16170 Hi I hope this is the correct list to ask about a permissions problem I have. I create a schema named cust, a table named clients, and a group named salesmen. I use: REVOKE ALL ON SCHEMA cust FROM PUBLIC; GRANT USAGE ON SCHEMA cust TO GROUP salesmen; REVOKE ALL ON TABLE clients FROM PUBLIC; GRANT SELECT ON TABLE clients TO GROUP salesmen; then I do a : \dp clients and get: Access privileges for database "custdb" Schema | Table | Access privileges ---------+---------+------------------------------------------------------------------------------------------------- cust | clients | {admin=a*r*w*d*R*x*t*/cust,"group salesmen=r/cust"} The problem is that when I check from within my application if a member of the group salesmen has permissions to INSERT into the group clients, I get an affirmative question. I guessed it was a problem with my application, so I downloaded postgresql_autodoc (http://www.rbt.ca/autodoc/) in order to check the permissions better. It also claims that group salesmen has the right to SELECT, INSERT and DELETE on table clients. I tried : revoke insert on clients from group salesmen; and nothing changed I tried : revoke all on clients from group salesmen; and every permission was revoked. Then I tried again: GRANT SELECT ON TABLE clients TO GROUP salesmen; and all three permissions (insert, select, delete) are back in place. All these happen with postgresql 7.4 on linux Is there something I'm doing wrong, something I don't understand or have I hit a bug? Thanks in advance Michalis Kabrianis