Is it possible to hide process args from 'ps -ef'??
Tom Armistead
toma at swsrv1.cirr.com
Thu Apr 18 08:27:00 AEST 1991
In article <1414 at compel.UUCP> her at compel.UUCP (Helge Egelund Rasmussen) writes:
>It is possible to give Oracle programs the username/password on the
>command line, ie :
> $ sqlplus scott/tiger
>
>This is all very nice, BUT when another user execute 'ps -ef' he/she
>can see the password!
>
>Is it possible to hide the arguments, so that they won't show up in
>the 'ps' output (possibly by 'exec'ing sqlplus in some devious way :-)??
>
>I know that Oracle will ask for the username & password if these aren't given
>as arguments, but I would prefer giving them as arguments.
>
>Btw. I'm using SysV3 (Interactive Unix).
>
>Helge
>---
>Helge E. Rasmussen . PHONE + 45 36 72 33 00 . E-mail: her at compel.dk
>Compel A/S . FAX + 45 36 72 43 00 .
>Copenhagen, Denmark
I THINK this is impossible - but I'm not a kernel type - so don't quote me
on that. If you only problem is with Oracle and SQL*Plus, you can set up
Oracle accounts so that no password is entered on the command line.
Oracle stuff after this line, press 'n' to skip:
In Oracle, you can add accounts so that the user only enters '/' on the
command line, this will be accepted as username and password.
If an Oracle account of the name 'OPS$unix_user_name' exists where
unix_user_name is equal to your account name, you will connected to
that account with '/' and no password is required.
ex.
SQL> GRANT CONNECT,RESOURCE TO OPS$TOMA IDENTIFIED BY SADKJSALJK;
The password is basically just junk to keep unauthorized people from using
the account.
Now, I log into unix as toma and run sqlplus like this:
$ sqlplus /
Hope this helps...
Tom
--
Tom Armistead - Software Services - 2918 Dukeswood Dr. - Garland, Tx 75040
===========================================================================
toma at swsrv1.cirr.com {egsner,letni,ozdaltx,void}!swsrv1!toma
More information about the Comp.unix.wizards
mailing list