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 8ED8DD9878 for ; Wed, 9 Nov 2005 08:44:42 -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 27840-05 for ; Wed, 9 Nov 2005 12:44:38 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.kivi.com.tr (mail.kivi.com.tr [213.143.254.37]) by svr1.postgresql.org (Postfix) with ESMTP id 4C1D4D982D for ; Wed, 9 Nov 2005 08:44:39 -0400 (AST) Received: by mail.kivi.com.tr (Postfix, from userid 1009) id 062798000D; Wed, 9 Nov 2005 14:44:30 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by mail.kivi.com.tr (Postfix) with ESMTP id EFD84A0666; Wed, 9 Nov 2005 14:44:30 +0200 (EET) Date: Wed, 9 Nov 2005 14:44:25 +0200 (EET) From: Devrim GUNDUZ X-X-Sender: devrim2@mail.kivi.com.tr To: "Marc A. Donis" Cc: pgsql-admin@postgresql.org Subject: Re: Fwd: resetting superuser password In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Kivi-MailScanner-Information: Please contact the ISP for more information X-Kivi-MailScanner: Found to be clean X-Kivi-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-2.82, required 6, autolearn=disabled, ALL_TRUSTED -2.82) X-Kivi-MailScanner-From: devrim@gunduz.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.052 required=5 tests=[AWL=0.052] X-Spam-Score: 0.052 X-Spam-Level: Content-Type: TEXT/PLAIN; charset=iso-8859-9; format=flowed Content-Transfer-Encoding: 8BIT X-Archive-Number: 200511/85 X-Sequence-Number: 19458 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, On Wed, 9 Nov 2005, Marc A. Donis wrote: > I have lost the superuser (user postgres) password, but I still have > the unix root password. Is there anything I can do to reset the > postgres user's password (short of reinstalling Postgres)? Edit pg_hba.conf and set the auth method to trust. Then reload postgresql. This will stop PostgreSQL from asking you a password. Regards, - -- Devrim GUNDUZ Kivi Biližim Teknolojileri - http://www.kivi.com.tr devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr http://www.gunduz.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDce8u4zE8DGqpiZARArkjAJ4jmuLYV6I3oLnTowbF3d0IOfDYTQCeKDqZ je2SdfQvAxgOTUhirXlzq6A= =8VN2 -----END PGP SIGNATURE----- From pgsql-admin-owner@postgresql.org Wed Nov 9 08:45:34 2005 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 C1AB8D9B52 for ; Wed, 9 Nov 2005 08:45:31 -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 24150-08 for ; Wed, 9 Nov 2005 12:45:28 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 5EB94D9B24 for ; Wed, 9 Nov 2005 08:45:30 -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 jA9CjSJS029170 for ; Wed, 9 Nov 2005 12:45:28 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.13.1/8.13.1/Submit) id jA9Chsoc028631 for pgsql-admin@postgresql.org; Wed, 9 Nov 2005 12:43:54 GMT (envelope-from news) From: "mad" X-Newsgroups: pgsql.admin Subject: resetting superuser password Date: 9 Nov 2005 04:43:54 -0800 Organization: http://groups.google.com Lines: 15 Message-ID: <1131540234.526161.161670@g43g2000cwa.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Complaints-To: groups-abuse@google.com User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 webproxy:8080 (squid/2.5.STABLE6) Complaints-To: groups-abuse@google.com Injection-Info: g43g2000cwa.googlegroups.com; posting-host=193.29.77.101; 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] X-Spam-Score: -1.44 X-Spam-Level: X-Archive-Number: 200511/86 X-Sequence-Number: 19459 I have lost the superuser (user postgres) password, but I still have the unix root password. Is there anything I can do to reset the postgres user's password (short of reinstalling Postgres)? Obviously, I can su to unix user postgres, but this does not seem to advance my cause, as doing "psql -U postgres" still prompts me for a password, which is not the same as the unix postgres user's password. OS: RedHat 9 Help! Thanks, Marc