logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Can't connect to socket in Debian distribution: msg#00227

Subject: Re: Can't connect to socket in Debian distribution
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@xxxxxxxxxx> 11/27/02 04:38PM >>>
On Wed, 2002-11-27 at 20:30, Tom Lane wrote:
> "KEVIN ZEMBOWER" <KZEMBOWER@xxxxxxxxxx> 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.Elphick@xxxxxxxxxx 
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 


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@xxxxxxxxxxxxxx)



<Prev in Thread] Current Thread [Next in Thread>