Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL*Plus: How to disable Unix shell?

Re: SQL*Plus: How to disable Unix shell?

From: John Dixon <john.dixon_at_bsis.com>
Date: 1997/04/07
Message-ID: <01bc4374$15816480$4300660a@jdixon.bsis.com>#1/1

Peter Luckock <luckock_at_enternet.com.au> wrote in article <3347F741.5809_at_enternet.com.au>...
>
> Is there any secure way to prevent users from opening a command-line
 shell
> from within Unix-hosted SQL*Plus (as shipped with Oracle 7.2.2 for Unix
> System V release 4.0 running on SUN/Sparc).
>

Redefine the SHELL variable after the users logs in but before starting SQL*Plus. Define it as a progam that exists (such as /bin/true), but is inaquious. When they try and shell out it will simply kick them back to a SQL prompt. For example:

For Borne/Korn shell: SHELL=/bin/true export SHELL For C shell: setenv SHELL /bin/true

-- 
John Dixon
john.dixon_at_bsis.com
Received on Mon Apr 07 1997 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US