From: Tom Lane <tgl@sss.pgh.pa.us>
To: Davide Bozzelli <buzzz@newtel.it>
Cc: pgsql-admin@postgresql.org
Subject: Re: lost superuser perms
Date: Fri, 21 Jun 2002 10:25:34 -0400
Message-ID: <19406.1024669534@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.30.0206211058320.29157-100000@sultan.newtel.it>
References: <Pine.LNX.4.30.0206211058320.29157-100000@sultan.newtel.it>
Davide Bozzelli <buzzz@newtel.it> writes:
> I have lost the superuser permissions of postgres user.
> The postgres user does not have the "create user"
> and "create database" permission .
> Are there a way to recover this permissions without
> the recreation of the cluster database ?
If you are using 7.2, shut down the postmaster, start a standalone
backend and issue the proper ALTER USER commands to restore postgres'
superuserdom. (There is info about running a standalone backend on
the 'postgres' man page and the 'REINDEX' man page.)
In prior releases I think you may be out of luck, unless you want to
risk manual surgery on the pg_shadow file.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, buzzz@newtel.it
Subject: Re: lost superuser perms
In-Reply-To: <19406.1024669534@sss.pgh.pa.us>
References: <Pine.LNX.4.30.0206211058320.29157-100000@sultan.newtel.it> <19406.1024669534@sss.pgh.pa.us>
* 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