pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: akacker <akacker@lw1.vsnl.net.in>
To: pgsql-admin@postgresql.org
Subject: Please help me with pg_hba.conf file settings
Date: Mon, 20 Nov 2000 15:45:41 +0530
Message-ID: <000801c052da$d7520a00$0e09a8c0@tanya4> (raw)


Dear Sir
Hello!
I have a Linux web server on which I am providing name based hosting 
services to my clients.
I want that my clients who have their virtual sites on my server should
be able to connect to their databases by using php or any other 
server side programs to connect to postgresql database thourgh their
password authentications.

For this I edited the pg_hba.conf file of Postgresql which is at the 
location /var/lib/pgsql/pg_hba.conf and I added the following lines
at the bottom of this file using vi editor.

host all 64.65.7.145 255.255.255.255 trust

By adding the above file in pg_hba.conf file my clients are able to
connect to their databases but even if they give any wrong password
in their server side programs which they are using to connect to 
their database they are able to access their databse.

I tried adding the following lines to pg_hba.conf file :

host all 64.65.7.145 255.255.255.255 password pgpass

I created pgpass by the command pg_passwd pgpass and added
the user (i.e my client username and password) but it did not
work. though this way it is working fine on my local intranet
which is on Linux.

Please help me solve my problem.
Regards

view thread (2+ messages)  latest in thread

Message-ID: <000801c052da$d7520a00$0e09a8c0@tanya4>
Permalink:  ../000801c052da$d7520a00$0e09a8c0@tanya4/
Also on:    postgresql.org/message-id/000801c052da$d7520a00$0e09a8c0@tanya4

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: akacker@lw1.vsnl.net.in
  Subject: Re: Please help me with pg_hba.conf file settings
  In-Reply-To: <000801c052da$d7520a00$0e09a8c0@tanya4>
  References: <000801c052da$d7520a00$0e09a8c0@tanya4>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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