The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
swlist is not displayed in HP-UX vasanthan HP-UX 4 04-24-2008 08:03 AM
perl - file reading - last line not displayed matrixmadhan UNIX for Dummies Questions & Answers 8 12-18-2006 02:10 PM
xclock gets displayed only for "root" but not for another account rdbono UNIX for Dummies Questions & Answers 1 04-22-2006 08:54 PM
Error msg displayed in SCO server raguramtgr UNIX for Dummies Questions & Answers 3 06-30-2004 12:04 PM
hostname not displayed Ronny SUN Solaris 7 06-14-2004 02:55 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-23-2008
shafi2all shafi2all is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 68
Password is getting displayed

My shell script which runs on solaris has an execution in it.

Contents of shell script BEGIN :
Executable_filename username/password@DBinstance parameter2 parameter3
Contents of shell script END :

When i launch the shell script, it connects to database to gets few details..

In the console, when i execute "ps -aef | grep report", i am seeing "username/password@DBinstance" attached to unix user process..

What can i do for NOT to display database username/password which gets displayed on the console..?
  #2 (permalink)  
Old 06-23-2008
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,951
moved to "scripting". not a solaris problem...
  #3 (permalink)  
Old 06-23-2008
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
keep user name and password in a file and in the script, read them from that file

but you shouldn't keep the password plain text ... on command line and even in a file

consider some encryption for the password
  #4 (permalink)  
Old 06-23-2008
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,912
This is a very common problem with lots of different answers depending on your particular situation. Do a Web seach on "SQLplus hide password" and you will finds multiple solutions.
Sponsored Links
Closed Thread

Bookmarks

Tags
password, sql

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0