pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
lost superuser perms
3+ messages / 2 participants
[nested] [flat]

* lost superuser perms
@ 2002-06-21 09:00  Davide Bozzelli <buzzz@newtel.it>
  0 siblings, 1 reply; 3+ messages in thread

From: Davide Bozzelli @ 2002-06-21 09:00 UTC (permalink / raw)
  To: pgsql-admin

Hi

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 ?


Thx for help .






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: lost superuser perms
@ 2002-06-21 14:25  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Davide Bozzelli <buzzz@newtel.it>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2002-06-21 14:25 UTC (permalink / raw)
  To: Davide Bozzelli <buzzz@newtel.it>; +Cc: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: lost superuser perms
@ 2002-06-21 19:16  Davide Bozzelli <buzzz@newtel.it>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Davide Bozzelli @ 2002-06-21 19:16 UTC (permalink / raw)
  To: pgsql-admin

On Fri, 21 Jun 2002, Tom Lane wrote:

> 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.)
>
 Thx for help ... now all seems to works property .






^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2002-06-21 19:16 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-06-21 09:00 lost superuser perms Davide Bozzelli <buzzz@newtel.it>
2002-06-21 14:25 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-06-21 19:16   ` Davide Bozzelli <buzzz@newtel.it>

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