X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3C5369F97C2 for ; Thu, 6 Jul 2006 23:51:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 64951-05 for ; Thu, 6 Jul 2006 23:51:37 -0300 (ADT) X-Greylist: delayed 00:06:41.460918 by SQLgrey- Received: from web51012.mail.yahoo.com (web51012.mail.yahoo.com [68.142.224.82]) by postgresql.org (Postfix) with SMTP id 568259F94F3 for ; Thu, 6 Jul 2006 23:51:37 -0300 (ADT) Received: (qmail 7670 invoked by uid 60001); 7 Jul 2006 02:44:53 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=DQx/Fs7iGGvcp/tzlf7lt7rPGON6NGVd/fWwwVcl/yJY6reIO6WIZzDYfrhtimhu5q/yXi7BxNNRkasp6A3NrQM9zU1CTxsrvz1ieoRvj5WpCEvfjk+TiRb/ztDjdGD2x11drj6Obv6Q8gbLddOxHV26y+9Xj/wyXDctqx3IX5Q= ; Message-ID: <20060707024453.7668.qmail@web51012.mail.yahoo.com> Received: from [64.149.179.91] by web51012.mail.yahoo.com via HTTP; Thu, 06 Jul 2006 19:44:53 PDT Date: Thu, 6 Jul 2006 19:44:53 -0700 (PDT) From: Keith Subject: Roles and Superusers To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/40 X-Sequence-Number: 22286 Greetings: First, I apologize if this is not the correct list to send to. I am having a problem with group roles, logon roles, and inheritance. I am not sure if it is a database problem or a pgIII problem. I am using postgreSQL 8.1.4 and the bundled pgIII on WinXP Home SP2. It seems that the 'superuser' part of my 'leads' group role is not functioning (code below). It appears that the security settings are at least partially transitive as I have one group role nested within the other and I am able to access the appropriate resources. The problem is that only a superuser or the owner of a table can drop it and even though I am supposed to be a superuser, I cannot drop the table! I also lack the ability to create databases... The setup is below. I have setup two group roles CREATE ROLE developers NOSUPERUSER INHERIT CREATEDB NOCREATEROLE; and CREATE ROLE leads SUPERUSER INHERIT CREATEDB CREATEROLE; UPDATE pg_authid SET rolcatupdate=true WHERE OID=23059::oid; GRANT developers TO leads WITH ADMIN OPTION; I also have a login role for myself CREATE ROLE keith LOGIN NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE; GRANT leads TO keith WITH ADMIN OPTION; Lastly I have a table to which only the owner and the 'developers' group role have access to. Public is not listed. I can use this table freely, but not drop it. CREATE TABLE test.files ( ... ) WITHOUT OIDS; ALTER TABLE test.files OWNER TO test; GRANT ALL ON TABLE test.files TO test; GRANT ALL ON TABLE test.files TO developers; Thanks in advance for your help. Sincerely, Keith __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com