Re: Disable executing external commands from psql? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Disable executing external commands from psql?
Date
Msg-id 201006020023.o520Nwa19066@momjian.us
Whole thread Raw
In response to Re: Disable executing external commands from psql?  (Ken Tanzer <ken.tanzer@gmail.com>)
List 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@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

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

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: PosttgreSQL on AIX
Next
From: Bruce Momjian
Date:
Subject: Re: Disable executing external commands from psql?