From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | acchung(at)mit(dot)edu |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: postgres authentication |
Date: | 2002-07-11 02:59:51 |
Message-ID: | 200207110259.g6B2xqj26852@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
acchung(at)mit(dot)edu wrote:
> Hi,
>
> I changed my pg_hba.conf file so that I am authenticating using
> md5 from passwdfile which is a file i created to hold my passwords.
> I didn't add postgres onto that file but when I type psql template1
> under postgres, it prompts me for my password. i type it in
> and it gives me
>
> psql: FATAL 1: Password authentication failed for user "postgres"
>
> I only have one password for postgres which I used perfectly fine
> to log into linux. I also use the same password to switch between
> postgres and other non-root users in the bash shell. i tried adding postgres
> into the passwdfile file but to no avail. How do I correct this
> password bug for postgres so that I can do stuff as a superuser?
> HELP!
That file is used for secondary passwords. It is going away in 7.3 so I
suggest using ALTER USER PASSWORD to set the password for the user in
the pg_shadow table.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Geoff | 2002-07-11 09:22:28 | FW: Linking databases. |
Previous Message | Ludwig Lim | 2002-07-11 00:58:55 | Re: SqlServer to PostgreSql |