Re: The " \! " and " \l " commands
От | Peter Eisentraut |
---|---|
Тема | Re: The " \! " and " \l " commands |
Дата | |
Msg-id | Pine.LNX.4.30.0202011608040.687-100000@peter.localdomain обсуждение исходный текст |
Ответ на | The " \! " and " \l " commands ("Suporte" <Suporte@wwrent.com.br>) |
Ответы |
Re: The " \! " and " \l " commands
|
Список | pgsql-hackers |
Suporte writes: > Does anyone know how to disable the " \! " and " \l " commands ? For outright disablement, you edit the file src/bin/psql/commands.c, remove the portions that deal with these commands, and rebuild. But... > Users connect on another solaris through SSH with a shell developed by > me in perl, and connect to the PGSQL_SERVER through psql. The problem > is: when the user is on the PGSQL PROMPT and he types " \! /bin/sh ", > he gets the /bin/sh on the server. You could start the psql program with SHELL=/bin/false in the environment. (I don't see what your situation has to do with \l.) -- Peter Eisentraut peter_e@gmx.net
В списке pgsql-hackers по дате отправления: