Re: simple md5 authentication problems - Mailing list pgsql-general

From kmh496
Subject Re: simple md5 authentication problems
Date
Msg-id 1147097431.29626.16.camel@var.sirfsup.com
Whole thread Raw
In response to simple md5 authentication problems  ("robert" <robertlazarski@gmail.com>)
Responses Re: simple md5 authentication problems  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-general
> > >
> > > # "local" is for Unix domain socket connections only
> > > local   all         all                               ident sameuser
> > > # IPv4 local connections:
> > > host    all         all         127.0.0.1/32          md5
> > > # IPv6 local connections:
> > > host    all         all         ::1/128               ident sameuser
> > >
> > > I created my db as:
> > > postgres=# CREATE DATABASE maragato_test OWNER postgres;
> > >
> > > I seem to have a user 'postgres' - I'm using the default.
> > >
> > > postgres=# SELECT * FROM "pg_user";
> > >  usename  | usesysid | usecreatedb | usesuper | usecatupd |  passwd  |
> > > valuntil | useconfig
> > > ----------+----------+-------------+----------+-----------+----------+----------+-----------
> > >  postgres |       10 | t           | t        | t         | ******** |
> > >         |
> > >
> > > However, I get this error:
> > >
> > > /home/postgres> psql -h localhost maragato_test postgres
> > > Password for user postgres:
> > > psql: FATAL:  autenticação do tipo password falhou para usuário
> > > "postgres"
> > >
doesn't that user have to exist since you are using ident method?  that
means unix username == postgres username.
do you have a user named maragato_test on the system?
did you create that user in postgres and on the system?






pgsql-general by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: DBD::Pg 1.49 released
Next
From: Tom Lane
Date:
Subject: Re: catalog is missing 16 attribute(s) for relid 8202590