Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 13118476F2E for ; Fri, 21 Jun 2002 10:31:36 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 600E0476FE7 for ; Fri, 21 Jun 2002 10:25:46 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g5LEPY119409; Fri, 21 Jun 2002 10:25:34 -0400 (EDT) To: Davide Bozzelli Cc: pgsql-admin@postgresql.org Subject: Re: lost superuser perms In-reply-to: References: Comments: In-reply-to Davide Bozzelli message dated "Fri, 21 Jun 2002 11:00:39 +0200" Date: Fri, 21 Jun 2002 10:25:34 -0400 Message-ID: <19406.1024669534@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200206/166 X-Sequence-Number: 4600 Davide Bozzelli 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