X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5F3C153F89 for ; Tue, 10 May 2005 20:10:46 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 85751-07 for ; Tue, 10 May 2005 23:10:44 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 9829353F84 for ; Tue, 10 May 2005 20:10:43 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j4ANAX3L027893; Tue, 10 May 2005 19:10:33 -0400 (EDT) To: "Dave Held" Cc: pgsql-admin@postgresql.org Subject: Re: Irrevocable privileges In-reply-to: <49E94D0CFCD4DB43AFBA928DDD20C8F902618506@asg002.asg.local> References: <49E94D0CFCD4DB43AFBA928DDD20C8F902618506@asg002.asg.local> Comments: In-reply-to "Dave Held" message dated "Tue, 10 May 2005 17:40:11 -0500" Date: Tue, 10 May 2005 19:10:33 -0400 Message-ID: <27892.1115766633@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/107 X-Sequence-Number: 17536 "Dave Held" writes: > I think it's silly that any privileges that an owner grants to himself = > are essentially irrevocable. Say again? An owner can certainly revoke his own ordinary privileges. > Consider: > User joe creates table foo > User joe grants permission rw to himself on foo > User joe decides that user bob should really be the owner of foo > User joe revokes his permissions, alters foo to be owned by bob,=20 > and gives bob rw privilege > User joe is annoyed to find out that his privileges are in a state of = > limbo Please define "state of limbo". Also note that if user joe is able to do "ALTER OWNER" then he must be a superuser, and hence not subject to access controls in the first place. I do recall that we recently (probably in 8.0) fixed some issues with what ALTER OWNER does with existing privileges. What version are you testing? regards, tom lane