pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Joao Miguel Ferreira <joao.miguel.c.ferreira@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: permission denied to create and drop user
Date: Tue, 2 Feb 2021 14:54:51 -0800
Message-ID: <eadf39ed-6252-b685-6016-3c931e7dbf1b@aklaver.com> (raw)
In-Reply-To: <CALyyT7T=SNXYWfOFd6OKXefYEzxFz5RxWyj2KuZiC7-OxXHm_Q@mail.gmail.com>
References: <CALyyT7Rd1KB=KhO=HKcpyvXVC9Qy9uKRzfAbcv3Z4E7cuBTJHg@mail.gmail.com>
	<3830672.1612305037@sss.pgh.pa.us>
	<CALyyT7T=SNXYWfOFd6OKXefYEzxFz5RxWyj2KuZiC7-OxXHm_Q@mail.gmail.com>

On 2/2/21 2:43 PM, Joao Miguel Ferreira wrote:
> Hi,
> 
> 

> But... my dump file contains some agressive commands that are actually 
> making a reall mess. here they are:
> 
> CREATE ROLE pgcon;
> ALTER ROLE pgcon WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB LOGIN 
> NOREPLICATION NOBYPASSRLS;
> CREATE ROLE postgres;
> ALTER ROLE postgres WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB 
> LOGIN NOREPLICATION NOBYPASSRLS;
> 
> that is why I messed up my database. Lucky it is not critical at all. I 
> can start all over again, no problem.
> 
> maybe "pg_dumpall" has options to avoid those changes?
> 

That would be attributing AI abilities to pg_dumpall that it does not 
have. Those commands got there from someone in the original database 
tinkering with grants.


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (5+ messages)

Message-ID: <eadf39ed-6252-b685-6016-3c931e7dbf1b@aklaver.com>
Permalink:  ../eadf39ed-6252-b685-6016-3c931e7dbf1b@aklaver.com/
Also on:    postgresql.org/message-id/eadf39ed-6252-b685-6016-3c931e7dbf1b@aklaver.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: adrian.klaver@aklaver.com, joao.miguel.c.ferreira@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: permission denied to create and drop user
  In-Reply-To: <eadf39ed-6252-b685-6016-3c931e7dbf1b@aklaver.com>
  References: <CALyyT7Rd1KB=KhO=HKcpyvXVC9Qy9uKRzfAbcv3Z4E7cuBTJHg@mail.gmail.com> <3830672.1612305037@sss.pgh.pa.us> <CALyyT7T=SNXYWfOFd6OKXefYEzxFz5RxWyj2KuZiC7-OxXHm_Q@mail.gmail.com> <eadf39ed-6252-b685-6016-3c931e7dbf1b@aklaver.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