Re: Can't connect to socket in Debian distribution

From: "KEVIN ZEMBOWER" <KZEMBOWER(at)jhuccp(dot)org>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Can't connect to socket in Debian distribution
Date: 2002-11-27 21:56:32
Message-ID: sde4f94e.086@ccp2.jhuccp.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

This is a part of the mnogosearch system that's confusing to me. However, this is my first experience with mnogosearch and also with postgreSQL. I'm assuming that the Apache httpd software, which runs as "nobody:nogroup" in Debian, will run the mnogosearch php script to search the index and return the results. So, 'nobody:nogroup' will have to log into the mnogosearch database as dbuser 'mnogosearch.' At least, I think this is what's needed. But, I'm still working on it.

Thanks for writing.

-Kevin

>>> Oliver Elphick <olly(at)lfix(dot)co(dot)uk> 11/27/02 04:38PM >>>
On Wed, 2002-11-27 at 20:30, Tom Lane wrote:
> "KEVIN ZEMBOWER" <KZEMBOWER(at)jhuccp(dot)org> writes:
> > www2:/home/kevinz# psql -W mnogosearch mnogosearch
> > Password:
> > psql: FATAL 1: IDENT authentication failed for user "mnogosearch"
> ^^^^^^^^^^^^^^^^^^^^
>
> > When I 'su mnogosearch' I can then 'psql mnogosearch' , never get asked for a password, and get into psql immediately and without a problem.
>
> Indeed, because you haven't got it configured to use password
> authentication: you have it configured to use IDENT, which looks at the
> Unix userid you are running as. That has to match the Postgres userid
> you are trying to connect as.

The Debian default is to use "ident sameuser" authentication. This is
set in /etc/postgresql/pg_hba.conf.

Do you need to connect to this database as a different user? Why not
connect to it under your own name?

psql -d mnogosearch

If necessary the mnogosearch user may need to grant you appropriate
privileges on the tables in that database.

As with Unix logins, it seems to me to be desirable for users to connect
as themselves, so that what one does is distinguishable from what anyone
else does, should any tracing be necessary.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Thou, even thou, art LORD alone; thou hast made
heaven, the heaven of heavens, with all their host,
the earth, and all things that are therein, the seas,
and all that is therein, and thou preservest them all;
and the host of heaven worshippeth thee."
Nehemiah 9:6

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Warren Massengill 2002-11-28 00:40:56 Copy entire file as one field
Previous Message Oliver Elphick 2002-11-27 21:38:27 Re: Can't connect to socket in Debian distribution