X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D11F6D9CF1 for ; Wed, 9 Nov 2005 14:15:39 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 20999-03 for ; Wed, 9 Nov 2005 18:15:38 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 87E5BD9CDC for ; Wed, 9 Nov 2005 14:15:38 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.13.1/8.13.1) with ESMTP id jA9IFbnX022839 for ; Wed, 9 Nov 2005 18:15:37 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.13.1/8.13.1/Submit) id jA9HoEjU016436 for pgsql-admin@postgresql.org; Wed, 9 Nov 2005 17:50:14 GMT (envelope-from news) From: "mad" X-Newsgroups: pgsql.admin Subject: Re: Fwd: resetting superuser password Date: 9 Nov 2005 09:50:09 -0800 Organization: http://groups.google.com Lines: 26 Message-ID: <1131558609.146035.262450@g44g2000cwa.googlegroups.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Complaints-To: groups-abuse@google.com In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g44g2000cwa.googlegroups.com; posting-host=80.90.55.13; posting-account=Dt2P9g0AAADP8RcM2SpCaszJUO-a1x9F To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=-1.44 required=5 tests=[ALL_TRUSTED=-1.44, AWL=-0.000] X-Spam-Score: -1.44 X-Spam-Level: X-Archive-Number: 200511/94 X-Sequence-Number: 19467 Thanks to all who replied, and all apologies for the multiple posting (my fault). The solution (in postgres 8.0.1): Edit data/pg_hba.conf to contain the line: local all postgres trust Then su to unix user postgres and restart postges with: > bin/pg_ctl restart -D /usr/local/pgsql/data -m fast and finally, login to postgres with: > psql -U postgres -d template1 and do alter user postgres with encrypted password 'newpass'; Remove the line added to pg_hba.conf, and restart postgres again! I'm a happy (and very relieved) camper. Marc