pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Grant all privileges to user on a database
Date: Mon, 24 Jul 2023 09:51:52 -0500
Message-ID: <62d2ad15-5192-0104-ad49-5ff301f5c425@gmail.com> (raw)
In-Reply-To: <1549849.1690207746@sss.pgh.pa.us>
References: <CAD7Ssm9fFBRN0+YssRgXmx7yECsunDg7kL_r2Yowh-3iD9tFTw@mail.gmail.com>
	<85b5b466-1efd-fb89-8686-08e5df88a00b@gmail.com>
	<CAD7Ssm8yFSywuKZVyPsn94_-Y9Pzo_nq7_3kfjSYOwhZBuCubA@mail.gmail.com>
	<CAKFQuwaJ=zeoBjdh9pMMWN34Y-rdhc4xmvT37YKWuBZcNjYR2Q@mail.gmail.com>
	<1549849.1690207746@sss.pgh.pa.us>

On 7/24/23 09:09, Tom Lane wrote:
> "David G. Johnston" <david.g.johnston@gmail.com> writes:
>> The error message is misleading, you can’t directly create tables in a
>> database, you must create them in a schema and the permission to do so is
>> granted to the role on the schema, not the database.
> The actual server message is going to be just
>
> ERROR:  permission denied for schema public
>
> I'm not sure where the "Are you sure ..." bit came from, but it wasn't
> Postgres.
>
> Anyway, backing up two steps, it looks like drupal hasn't yet adapted
> to the v15 change that removed default create privileges on the public
> schema (for security reasons).  You might see if a newer drupal release
> is available.  If not, the best bet would likely be
>
> GRANT ALL ON SCHEMA public TO public;

I'd have naively expected "GRANT ALL ON SCHEMA public TO public; " to be 
taken care of by "GRANT ALL PRIVILEGES ON DATABASE cbdevdb TO cbdevdbadmin;".

-- 
Born in Arizona, moved to Babylonia.





view thread (7+ messages)  latest in thread

Message-ID: <62d2ad15-5192-0104-ad49-5ff301f5c425@gmail.com>
Permalink:  ../62d2ad15-5192-0104-ad49-5ff301f5c425@gmail.com/
Also on:    postgresql.org/message-id/62d2ad15-5192-0104-ad49-5ff301f5c425@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: Grant all privileges to user on a database
  In-Reply-To: <62d2ad15-5192-0104-ad49-5ff301f5c425@gmail.com>
  References: <CAD7Ssm9fFBRN0+YssRgXmx7yECsunDg7kL_r2Yowh-3iD9tFTw@mail.gmail.com> <85b5b466-1efd-fb89-8686-08e5df88a00b@gmail.com> <CAD7Ssm8yFSywuKZVyPsn94_-Y9Pzo_nq7_3kfjSYOwhZBuCubA@mail.gmail.com> <CAKFQuwaJ=zeoBjdh9pMMWN34Y-rdhc4xmvT37YKWuBZcNjYR2Q@mail.gmail.com> <1549849.1690207746@sss.pgh.pa.us> <62d2ad15-5192-0104-ad49-5ff301f5c425@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox