From: Luca Ferrari <fluca1978@infinito.it>
To: pgsql-general@postgresql.org
Subject: Re: granting acces to an external client
Date: Thu, 26 Jul 2007 08:33:22 +0200
Message-ID: <200707260833.23358.fluca1978@infinito.it> (raw)
In-Reply-To: <20070725101447.BFD908E40FC@mailhost.ics.forth.gr>
References: <20070725101447.BFD908E40FC@mailhost.ics.forth.gr>
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
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: fluca1978@infinito.it, pgsql-general@postgresql.org
Subject: Re: granting acces to an external client
In-Reply-To: <200707260833.23358.fluca1978@infinito.it>
* 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