Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1euRDB-0007xm-D9 for pgsql-general@arkaria.postgresql.org; Fri, 09 Mar 2018 23:14:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1euRDA-0001MD-0F for pgsql-general@arkaria.postgresql.org; Fri, 09 Mar 2018 23:14:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1euRD9-0001L0-Nv for pgsql-general@lists.postgresql.org; Fri, 09 Mar 2018 23:14:03 +0000 Received: from eastrmfepo203.cox.net ([68.230.241.218]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1euRD0-0001km-IW for pgsql-general@lists.postgresql.org; Fri, 09 Mar 2018 23:13:59 +0000 Received: from eastrmimpo210.cox.net ([68.230.241.225]) by eastrmfepo203.cox.net (InterMail vM.8.01.05.28 201-2260-151-171-20160122) with ESMTP id <20180309231348.QYEK31819.eastrmfepo203.cox.net@eastrmimpo210.cox.net> for ; Fri, 9 Mar 2018 18:13:48 -0500 Received: from [192.168.1.10] ([70.171.109.83]) by eastrmimpo210.cox.net with cox id KzDo1x00f1o04Vy01zDo4o; Fri, 09 Mar 2018 18:13:48 -0500 X-Authority-Analysis: v=2.2 cv=b67C2pOx c=1 sm=1 tr=0 a=uCHdjGDeLqaieW9t8IbZ6A==:117 a=uCHdjGDeLqaieW9t8IbZ6A==:17 a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=T11QR6bd6vIA:10 a=EuJdzUNaxyg8fdD9NvEA:9 a=QEXdDO2ut3YA:10 X-CM-Score: 0.00 Authentication-Results: cox.net; auth=pass (PLAIN) smtp.auth=ron.l.johnson@cox.net To: pgsql-general@lists.postgresql.org From: Ron Johnson Subject: Ability to create tables Message-ID: <2b6740bf-cab4-6ddf-2928-665d632efb41@cox.net> Date: Fri, 9 Mar 2018 17:13:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, Archaic v9.2.7 Even though I revoked the  CREATE priv on role ABCREADONLY, it's still able to create tables.  What can I do to prevent this? \c postgres CREATE ROLE "ABCREADONLY" LOGIN INHERIT PASSWORD 'Flying.Fox'; GRANT CONNECT ON DATABASE "ABC123" TO "ABCREADONLY"; \c ABC123 GRANT USAGE ON SCHEMA public, ABC, tms TO "ABCREADONLY"; GRANT SELECT ON ALL TABLES IN SCHEMA public, ABC, tms TO "ABCREADONLY"; ALTER DEFAULT PRIVILEGES IN SCHEMA public, ABC, tms GRANT SELECT ON TABLES TO "ABCREADONLY"; $ psql -c 'revoke create on database "ABC123" from "ABCREADONLY";' REVOKE $ psql -d ABC123 -U ABCREADONLY -c "create table bar (f1 integer);" CREATE TABLE $ psql -d ABC123 -U ABCREADONLY -c "\d bar"       Table "public.bar" Column |  Type   | Modifiers --------+---------+----------- f1     | integer | Thanks -- Angular momentum makes the world go 'round.