X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 12513D1E8AB for ; Fri, 30 Apr 2004 13:20:14 -0300 (ADT) 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 57863-01 for ; Fri, 30 Apr 2004 13:19:52 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 79DC0D1E809 for ; Fri, 30 Apr 2004 13:19:51 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i3UGJdq2026202; Fri, 30 Apr 2004 12:19:39 -0400 (EDT) To: Pallav Kalva Cc: "scott.marlowe" , pgsql-sql@postgresql.org Subject: Re: Permissions not working In-reply-to: <40925695.8060908@deg.cc> References: <40917768.8040107@deg.cc> <17807.1083280047@sss.pgh.pa.us> <40925695.8060908@deg.cc> Comments: In-reply-to Pallav Kalva message dated "Fri, 30 Apr 2004 09:37:25 -0400" Date: Fri, 30 Apr 2004 12:19:39 -0400 Message-ID: <26201.1083341979@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/337 X-Sequence-Number: 17712 Pallav Kalva writes: > usps=> \z citystate_alias > Access privileges > for database "usps" > Schema | Table > | Access privileges > --------+-----------------+----------------------------------------------------------------------------------------------------------------------- > public | citystate_alias | > {postgres=a*r*w*d*R*x*t*/postgres,=r/postgres,usps=arwdRxt/postgres,"group > 100=r/usps","group ea_development=r/usps"} > (1 row) It looks to me like (a) this table is owned by postgres not usps, and (b) postgres has granted SELECT permission to PUBLIC (that's what the "=r/postgres" part means). The usps user isn't going to be able to revoke that because he doesn't own the table. It does seem like you've found a bug of some kind though: the above shows that user usps does not have GRANT OPTION rights of any kind (there are no stars in his privilege list). So how was he able to grant SELECT rights to those two groups? Do you have the exact sequence of GRANT and REVOKE operations that were performed on this table? What PG version is this, exactly? regards, tom lane