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