Disallow execution of shell commands from psql - Mailing list pgsql-general

From Wiwwo Staff
Subject Disallow execution of shell commands from psql
Date
Msg-id CAFe70G6=XkdZKwdGOQA-Ccr9QYAS9_G+FULAO08yTy_7Z9=xDA@mail.gmail.com
Whole thread Raw
Responses Re: Disallow execution of shell commands from psql
List pgsql-general
Hi!
Happy new (gregorian calendar) year!

Somehow related to the proposal of having a `psql --idle` option, is there a way to disallow the command `\!` (and anything of the likes in psql?

Sure, I can set the SHELL env var at run-time, but I still want to have postgres user to be a normal user, with its shell etc, which means it can change this SHELL setting somewhere.

Any tip?

pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: Use case for enabling log_duration other than benchmarking
Next
From: Julien Rouhaud
Date:
Subject: Re: Use case for enabling log_duration other than benchmarking