pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedConnection problem
4+ messages / 4 participants
[nested] [flat]
* Connection problem
@ 2002-04-21 07:35 Gunnar <gunnar@gunix.mine.nu>
0 siblings, 2 replies; 4+ messages in thread
From: Gunnar @ 2002-04-21 07:35 UTC (permalink / raw)
To: pgsql-admin
I'm having problems connecting to my postgresql 7.2.1 running on my Debian
Linux box.
(as root)
$ psql template1 foobar
psql: FATAL 1: IDENT authentication failed for user "foobar"
Could anybody tell me what the problem is?
The user "foobar" is created with the createuser command without any problem.
Here is the pg_hba.conf
local all ident sameuser
local all trust
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Connection problem
@ 2002-04-22 12:37 Nick Fankhauser <nickf@ontko.com>
parent: Gunnar <gunnar@gunix.mine.nu>
1 sibling, 0 replies; 4+ messages in thread
From: Nick Fankhauser @ 2002-04-22 12:37 UTC (permalink / raw)
To: gunnar@gunix.mine.nu; pgsql-admin
Gunnar-
It looks to me like the two lines in pg_hba conflict, and the first one is
being used. Since you are logged in as root, it looks for "sameuser" on
foobar and doesn't get a match.
Try either logging into linux as foobar or eliminate the first line of
pg_hba.
-Nick
--------------------------------------------------------------------------
Nick Fankhauser nickf@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788
Ray Ontko & Co. Software Consulting Services http://www.ontko.com/
> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Gunnar
> Sent: Sunday, April 21, 2002 2:35 AM
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] Connection problem
>
>
> I'm having problems connecting to my postgresql 7.2.1 running on
> my Debian
> Linux box.
>
> (as root)
> $ psql template1 foobar
> psql: FATAL 1: IDENT authentication failed for user "foobar"
>
> Could anybody tell me what the problem is?
> The user "foobar" is created with the createuser command without
> any problem.
>
> Here is the pg_hba.conf
>
> local all ident sameuser
> local all trust
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Connection problem
@ 2002-04-22 12:42 Ferdinand Smit <ferdinand@telegraafnet.nl>
parent: Gunnar <gunnar@gunix.mine.nu>
1 sibling, 0 replies; 4+ messages in thread
From: Ferdinand Smit @ 2002-04-22 12:42 UTC (permalink / raw)
To: gunnar@gunix.mine.nu; pgsql-admin
On Sunday 21 April 2002 09:35, Gunnar wrote:
> I'm having problems connecting to my postgresql 7.2.1 running on my Debian
> Linux box.
>
> (as root)
> $ psql template1 foobar
> psql: FATAL 1: IDENT authentication failed for user "foobar"
>
> Could anybody tell me what the problem is?
> The user "foobar" is created with the createuser command without any
> problem.
>
> Here is the pg_hba.conf
>
> local all ident sameuser
> local all trust
I think that postgres only uses the first line and that line says that
postgres uses the ident autentication (without a password if the user is the
same). This means that the user MUST exist in the /etc/passwd.
The second line (not used because the first is the same) allows al users
without a password.
So remove the first line or add user to passwd.
Ferdinand
^ permalink raw reply [nested|flat] 4+ messages in thread
* Connection problem
@ 2004-03-29 12:27 Muhammad Imran <imran@sdpi.org>
0 siblings, 0 replies; 4+ messages in thread
From: Muhammad Imran @ 2004-03-29 12:27 UTC (permalink / raw)
To: pgsql-admin
Dear All:
I'm (was) running the Postgresql 7.3.2 on Linux 8, I had try to create a new instance of psql server with postmaster... and also try to experiement environment variable PGDATA.
But now I have change the environment data to its original location but unable to run '/psql mydb' command, message came
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
who I can check that postgresql server is running or not.
Regards
Imran
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2004-03-29 12:27 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-04-21 07:35 Connection problem Gunnar <gunnar@gunix.mine.nu>
2002-04-22 12:37 ` Nick Fankhauser <nickf@ontko.com>
2002-04-22 12:42 ` Ferdinand Smit <ferdinand@telegraafnet.nl>
2004-03-29 12:27 Connection problem Muhammad Imran <imran@sdpi.org>
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