Re: Questions on PostGreSQL Authentication mechanism...

From: John R Pierce <pierce(at)hogranch(dot)com>
To: dipti shah <shahdipti1980(at)gmail(dot)com>
Cc: postgres(at)tbruce(dot)com, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Richard Huxton <dev(at)archonet(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Questions on PostGreSQL Authentication mechanism...
Date: 2010-02-03 06:38:39
Message-ID: 4B6919EF.3040906@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

dipti shah wrote:
> I am connected to database as postgres user.
>
> '\!exec ..' doesn't work if I connect to the database from other host
> but it does work if I connect to the database from server where I have
> PostGreSQL installed. pg_read_file doesn't work in any case.
>
> Techdb=# \! exec cat /etc/postgresql/8.4/main/pg_hba.conf
> cat: cannot open /etc/postgresql/8.4/main/pg_hba.conf

thats because psql runs the command on the LOCAL server that the user is
running psql on. would be all kinda security problems if a user could
run commands on the remote server without having logged onto it as a
regular user.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message dipti shah 2010-02-03 06:41:11 Re: Does PostGreSQL support SSL inbuilt?
Previous Message dipti shah 2010-02-03 06:28:16 Re: Questions on PostGreSQL Authentication mechanism...