Re: Disable executing external commands from psql?

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Ken Tanzer <ken(dot)tanzer(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Disable executing external commands from psql?
Date: 2010-06-02 00:23:58
Message-ID: 201006020023.o520Nwa19066@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ken Tanzer wrote:
> >
> > Sure use SHELL=/usr/bin/false:
> >
> > $ SHELL=/usr/bin/false psql
> > psql (9.0beta1)
> > Type "help" for help.
> >
> > postgres=> \!
> > postgres=>
> >
> >
>
> Trouble is, that doesn't stop
>
> \! bash

Ah, I see. libc hardcodes the SHELL executable into the system()
library call.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ None of us is going to be here forever. +

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2010-06-02 00:26:21 Re: Disable executing external commands from psql?
Previous Message John R Pierce 2010-06-02 00:13:54 Re: PosttgreSQL on AIX