Re: granting acces to an external client - Mailing list pgsql-general

From Luca Ferrari
Subject Re: granting acces to an external client
Date
Msg-id 200707260833.23358.fluca1978@infinito.it
Whole thread Raw
In response to granting acces to an external client  ("Sorin N. Ciolofan" <ciolofan@ics.forth.gr>)
List pgsql-general
On Wednesday 25 July 2007 Sorin N. Ciolofan's cat, walking on the keyboard,
wrote:
> Hello!
>
> I'd like to ask you what line should be added in pg_hba.conf file in order
> to grant access to a user with ip
> 139.100.99.98 to a db named "myDB" with user "scott" with password
> "mikepwd"?
>

This should work:
host    myDB   scott      139.100.99.98               md5

For the password you must use the $HOME/.pgpass file storing a line like the
following:
dbHost:5432:myDB:scott:mikepwd

being dbHost the host that is running postgres. After that issue a reload.

Hope this helps.

Luca

pgsql-general by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: using Tsearch2 for chemical text
Next
From: Luca Ferrari
Date:
Subject: Re: a few questions (and doubts) about xid