Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwXJP-0006YL-QL for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Sep 2017 17:36:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dwXJP-0005pI-Cd for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Sep 2017 17:36:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dwXIg-0002r5-NO for pgsql-bugs@postgresql.org; Mon, 25 Sep 2017 17:36:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dwXId-00056v-W2 for pgsql-bugs@postgresql.org; Mon, 25 Sep 2017 17:36:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v8PHa6Fb019763; Mon, 25 Sep 2017 13:36:06 -0400 From: Tom Lane To: randygrolemund@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14828: Security isn't working In-reply-to: <20170925172125.1450.68271@wrigleys.postgresql.org> References: <20170925172125.1450.68271@wrigleys.postgresql.org> Comments: In-reply-to randygrolemund@gmail.com message dated "Mon, 25 Sep 2017 17:21:25 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19761.1506360966.1@sss.pgh.pa.us> Date: Mon, 25 Sep 2017 13:36:06 -0400 Message-ID: <19762.1506360966@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org randygrolemund@gmail.com writes: > Another team member created a new db, and did not assign any users > permission to that db. It appears at least one of the users (no super user > permissions) can read and write to that db. It doesn't make any sense how > this is working. Well, as noted in the GRANT reference page, the default for a new database is to grant CONNECT privilege to PUBLIC; if you don't like that you need to revoke it, or (usually less desirable) use pg_hba.conf rules to restrict access. Depending on how much you want to lock down access, you might also want to revoke TEMP privilege and/or remove or restrict the "public" schema within that database. If none of those are the problem then you need to provide considerably more detail. But so far I see nothing here that sounds like it's not operating as designed. https://www.postgresql.org/docs/current/static/bug-reporting.html regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs