pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
granting acces to an external client
3+ messages / 3 participants
[nested] [flat]

* granting acces to an external client
@ 2007-07-25 10:14 Sorin N. Ciolofan <ciolofan@ics.forth.gr>
  2007-07-26 01:01 ` Re: granting acces to an external client Milen A. Radev <milen@radev.net>
  2007-07-26 06:33 ` Re: granting acces to an external client Luca Ferrari <fluca1978@infinito.it>
  0 siblings, 2 replies; 3+ messages in thread

From: Sorin N. Ciolofan @ 2007-07-25 10:14 UTC (permalink / raw)
  To: pgsql-general@postgresql.org; +Cc: pgsql-admin

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"?

After modifying this file is enough to issue
pg_ctl reload 
or should I restart postgres?

Thank you
With best regards,






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: granting acces to an external client
  2007-07-25 10:14 granting acces to an external client Sorin N. Ciolofan <ciolofan@ics.forth.gr>
@ 2007-07-26 01:01 ` Milen A. Radev <milen@radev.net>
  1 sibling, 0 replies; 3+ messages in thread

From: Milen A. Radev @ 2007-07-26 01:01 UTC (permalink / raw)
  To: pgsql-admin

Sorin N. Ciolofan написа:
> 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"?
> 
> After modifying this file is enough to issue
> pg_ctl reload 
> or should I restart postgres?
> 

http://www.postgresql.org/docs/current/static/auth-pg-hba-conf.html

(Hint: look for "The pg_hba.conf file is read on...")



-- 
Milen A. Radev




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: granting acces to an external client
  2007-07-25 10:14 granting acces to an external client Sorin N. Ciolofan <ciolofan@ics.forth.gr>
@ 2007-07-26 06:33 ` Luca Ferrari <fluca1978@infinito.it>
  1 sibling, 0 replies; 3+ messages in thread

From: Luca Ferrari @ 2007-07-26 06:33 UTC (permalink / raw)
  To: pgsql-general@postgresql.org

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2007-07-26 06:33 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-07-25 10:14 granting acces to an external client Sorin N. Ciolofan <ciolofan@ics.forth.gr>
2007-07-26 01:01 ` Milen A. Radev <milen@radev.net>
2007-07-26 06:33 ` Luca Ferrari <fluca1978@infinito.it>

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