pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedauthentication error
6+ messages / 5 participants
[nested] [flat]
* authentication error
@ 2003-05-14 05:29 jie zhang <jie@best.com>
2003-05-15 16:45 ` Re: authentication error Bruno Wolff III <bruno@wolff.to>
0 siblings, 1 reply; 6+ messages in thread
From: jie zhang @ 2003-05-14 05:29 UTC (permalink / raw)
To: pgsql-admin
Hi,
I try to connect using psql test from localhost. I got:
FATAL 1: No pg_hba.conf entry for host localhost, user postgres,
database test
I double checked that I have done the following:
I started server using: postmaster -i -D /var/lib/pgsql/data >logfile 2>&1 &
In my pg_hba.conf file I have:
host all 127.0.0.1 255.255.255.0 trust
local all reject
Are there anything else I need to do ? or anything I did wrong ?
Please advice if you can.
thanks in advance,
Jie
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: authentication error
2003-05-14 05:29 authentication error jie zhang <jie@best.com>
@ 2003-05-15 16:45 ` Bruno Wolff III <bruno@wolff.to>
0 siblings, 0 replies; 6+ messages in thread
From: Bruno Wolff III @ 2003-05-15 16:45 UTC (permalink / raw)
To: jie zhang <jie@best.com>; +Cc: pgsql-admin
On Tue, May 13, 2003 at 22:29:04 -0700,
jie zhang <jie@best.com> wrote:
> Hi,
>
> I try to connect using psql test from localhost. I got:
> FATAL 1: No pg_hba.conf entry for host localhost, user postgres,
> database test
It looks like you are connecting via domain sockets and have not allowed
this for any users in pg_hba.conf. You probably want to change the local
line to:
local all trust
>
> I double checked that I have done the following:
> I started server using: postmaster -i -D /var/lib/pgsql/data >logfile 2>&1 &
>
> In my pg_hba.conf file I have:
> host all 127.0.0.1 255.255.255.0 trust
> local all reject
>
> Are there anything else I need to do ? or anything I did wrong ?
> Please advice if you can.
>
> thanks in advance,
>
> Jie
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
^ permalink raw reply [nested|flat] 6+ messages in thread
* authentication error
@ 2003-05-14 19:35 jie zhang <jie@best.com>
2003-05-14 20:24 ` Re: authentication error Gémes Géza <geza@kzsdabas.sulinet.hu>
2003-05-17 16:41 ` Re: authentication error Bijoy Chandrasekharan <bijoy_mc@yahoo.co.in>
0 siblings, 2 replies; 6+ messages in thread
From: jie zhang @ 2003-05-14 19:35 UTC (permalink / raw)
To: pgsql-admin
Hi,
I try to connect using psql test from localhost. I got:
FATAL 1: No pg_hba.conf entry for host localhost, user postgres,
database test
I double checked that I have done the following:
I started server using: postmaster -i -D /var/lib/pgsql/data >logfile
2>&1 &
In my pg_hba.conf file I have:
host all 127.0.0.1 255.255.255.0 trust
local all reject
Are there anything else I need to do ? or anything I did wrong ?
I try to force the connection go through tcp/ip.
Please advice if you can.
thanks in advance,
Jie
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: authentication error
2003-05-14 19:35 authentication error jie zhang <jie@best.com>
@ 2003-05-14 20:24 ` Gémes Géza <geza@kzsdabas.sulinet.hu>
1 sibling, 0 replies; 6+ messages in thread
From: Gémes Géza @ 2003-05-14 20:24 UTC (permalink / raw)
To: jie zhang <jie@best.com>; +Cc: pgsql-admin
jie zhang írta:
> Hi,
>
> I try to connect using psql test from localhost. I got:
> FATAL 1: No pg_hba.conf entry for host localhost, user postgres,
> database test
>
> I double checked that I have done the following:
> I started server using: postmaster -i -D /var/lib/pgsql/data >logfile
> 2>&1 &
>
> In my pg_hba.conf file I have:
> host all 127.0.0.1 255.255.255.0 trust
> local all reject
>
> Are there anything else I need to do ? or anything I did wrong ?
> I try to force the connection go through tcp/ip.
> Please advice if you can.
> thanks in advance,
>
> Jie
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
Can you connect without a host option if yes then check your
postgresql.conf file (should be in the same dir as pg_hba.conf) check
for a line tcpip_socket = true if not found write it and then restart
the postmaster.
Good luck
Geza Gemes
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: authentication error
2003-05-14 19:35 authentication error jie zhang <jie@best.com>
@ 2003-05-17 16:41 ` Bijoy Chandrasekharan <bijoy_mc@yahoo.co.in>
1 sibling, 0 replies; 6+ messages in thread
From: Bijoy Chandrasekharan @ 2003-05-17 16:41 UTC (permalink / raw)
To: pgsql-admin
> In my pg_hba.conf file I have:
> host all 127.0.0.1 255.255.255.0 trust
> local all reject
>
hi,
Try changing the last line to
local all trust
and restart the postmaster.
hope this helps.
regds,
bijoy.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: authentication error
@ 2003-05-16 20:12 eladio rodriguez <elarod_ad@hotmail.com>
0 siblings, 0 replies; 6+ messages in thread
From: eladio rodriguez @ 2003-05-16 20:12 UTC (permalink / raw)
To: jie@best.com; pgsql-admin
hi.
maybe:
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
local all all password
host all all XXX.X.X.X XXX.XXX.XXX.XXX password
good luck.
>From: jie zhang <jie@best.com>
>To: pgsql-admin@postgresql.org
>Subject: [ADMIN] authentication error
>Date: Wed, 14 May 2003 12:35:11 -0700
>
>Hi,
>
>I try to connect using psql test from localhost. I got:
>FATAL 1: No pg_hba.conf entry for host localhost, user postgres, database
>test
>
>I double checked that I have done the following:
>I started server using: postmaster -i -D /var/lib/pgsql/data >logfile 2>&1
>&
>
>In my pg_hba.conf file I have:
>host all 127.0.0.1 255.255.255.0 trust
>local all reject
>
>Are there anything else I need to do ? or anything I did wrong ?
>I try to force the connection go through tcp/ip.
>Please advice if you can.
>
>thanks in advance,
>
>Jie
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster
_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger:
http://messenger.yupimsn.com/
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2003-05-17 16:41 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-14 05:29 authentication error jie zhang <jie@best.com>
2003-05-15 16:45 ` Bruno Wolff III <bruno@wolff.to>
2003-05-14 19:35 authentication error jie zhang <jie@best.com>
2003-05-14 20:24 ` Gémes Géza <geza@kzsdabas.sulinet.hu>
2003-05-17 16:41 ` Bijoy Chandrasekharan <bijoy_mc@yahoo.co.in>
2003-05-16 20:12 Re: authentication error eladio rodriguez <elarod_ad@hotmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox