Gnuru.org
Adventures in Linux


Postgres - IDENT authentification failed
13 March 2007 @ 22:16 GMT
by Paul


One of the most annoying things is the way that postgres is first installed. IDENT authentication requires your unix and postgres identities to be the same. It's very frustrating and means we often end up with this error: FATAL: IDENT authentication failed for user

.

A way to fix this, at least on development machines is to tell postgres to trust all local users. In pg_hba.conf put something like this. It is apparently the "upstream" default and allows unrestricted access to any database by any user on the local machine:

# TYPE  DATABASE    USER        IP-ADDRESS        IP-MASK           METHOD
#
local   all         all                                             trust
# IPv4-style local connections:
host    all         all         127.0.0.1         255.255.255.255   trust


Leave a comment:

Are you human?