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 8C196560AA for ; Thu, 24 Feb 2005 13:33:11 +0000 (GMT) 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 25229-09 for ; Thu, 24 Feb 2005 13:33:02 +0000 (GMT) Received: from mailhub.lss.emc.com (mailhub.lss.emc.com [168.159.2.31]) by svr1.postgresql.org (Postfix) with ESMTP id A926555F03 for ; Thu, 24 Feb 2005 13:33:01 +0000 (GMT) Received: from usenagutmanx2l.lss.emc.com (usenagutmanx2l.lss.emc.com [10.243.18.24]) by mailhub.lss.emc.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id j1ODX84m015604 for ; Thu, 24 Feb 2005 08:33:09 -0500 (EST) Received: by usenagutmanx2l.lss.emc.com (Postfix, from userid 517) id 9C99FC248; Thu, 24 Feb 2005 08:33:08 -0500 (EST) From: Alex Gutman To: pgsql-admin@postgresql.org Subject: Preventing changes to default settings of a collective account? Message-Id: <20050224133308.9C99FC248@usenagutmanx2l.lss.emc.com> Date: Thu, 24 Feb 2005 08:33:08 -0500 (EST) X-PerlMx-Spam: Gauge=, SPAM=7%, Reasons='__HAS_MSGID 0, __SANE_MSGID 0' X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200502/278 X-Sequence-Number: 16446 Greetings, I've established a read-only collective account (sort of guest) with no privileges. Nevertheless, the collective user in question can still issue commands ALTER USER guest SET parameter TO value and so change the default setting of any user-alterable run-time configuration variable. Naturally, I'd like to prevent it - but there seems to be no privilege that I could revoke from that collective user in order to disable his changing default values of run-time configuration variables. (The NOCREATEUSER option used when creating the collective user does prevent it from changing its own password via ALTER USER guest WITH ... PASSWORD ... - which is good but not enough.) I've tried to prevent changes to the field pg_shadow.useconfig of the row pertaining to the collective user through CREATE OR REPLACE RULE pg_shadow_update_rule AS ON UPDATE TO pg_shadow WHERE NEW.usename = 'guest' DO INSTEAD NOTHING This trick didn't work. (I had little hope for its success from the beginning, as the table pg_shadow doesn't belong to any database, so I didn't expect the rule mechanism to work for it. I was connected to database template1 as user postgres when issuing the above CREATE OR REPLACE RULE command, if it's of any relevance.) Is there any way I could achieve my goal? With thanks in advance, Alex Gutman, grateful PostgreSQL user since 1998