| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Jay <jspothar(at)cs(dot)uccs(dot)edu> |
| Cc: | olly(at)lfix(dot)co(dot)uk, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: pgsql on debian |
| Date: | 2004-06-27 22:11:19 |
| Message-ID: | 14292.1088374279@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Jay <jspothar(at)cs(dot)uccs(dot)edu> writes:
> i tried the following command but nothing seems to work
> psql -U root -d root
> psql: FATAL: IDENT authentication failed for user "root"
You basically cannot use the -U switch when using IDENT authorization;
that auth mode requires that your presented Postgres username be the
same as the Unix name you're logged in under. (If you don't like
this then change to a different auth mode; see pg_hba.conf.)
In any case, root is unlikely to be the name of the postgres superuser.
When you probably want to do is "su" to become postgres and then psql
without using -U.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2004-06-27 22:14:32 | Re: Performance problem on RH7.1 |
| Previous Message | daniel | 2004-06-27 20:34:23 | Re: pgsql on debian |