| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | "Will Buik" <willbuik(at)gmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Can't get pgsql 8.1.4 to password protect roles. |
| Date: | 2006-06-04 01:54:36 |
| Message-ID: | 25806.1149386076@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
"Will Buik" <willbuik(at)gmail(dot)com> writes:
> I'm trying to password protect both the superuser role and another role that
> I created later with less privileges but I can't seem to get it to work. I
> have tried using the command *ALTER USER user WITH PASSWORD 'password';* and
> it responds with *ALTER ROLE* but it seems to have no effect at all. Even
> after I've password protected the role I can login to it with the
> *psql*command without a password.
You need to change pg_hba.conf to select a password-based authentication
mode ("md5" is the one usually used). See
http://www.postgresql.org/docs/8.1/static/client-authentication.html
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Joshua D. Drake | 2006-06-04 03:53:49 | Re: Best high availability solution ? |
| Previous Message | Bruce Momjian | 2006-06-03 21:40:52 | Re: Best high availability solution ? |