Re: granting acces to an external client

From: Luca Ferrari <fluca1978(at)infinito(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: granting acces to an external client
Date: 2007-07-26 06:33:22
Message-ID: 200707260833.23358.fluca1978@infinito.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin 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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jayakumar_Mukundaraju 2007-07-26 06:43:59 Re: Backup Scheduler...
Previous Message Jayakumar_Mukundaraju 2007-07-26 04:15:01 Re: Backup Scheduler...

Browse pgsql-general by date

  From Date Subject
Next Message Luca Ferrari 2007-07-26 06:42:45 Re: a few questions (and doubts) about xid
Previous Message Oleg Bartunov 2007-07-26 06:08:37 Re: using Tsearch2 for chemical text