Password is getting displayed


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Password is getting displayed
# 1  
Old 06-23-2008
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  
Old 06-23-2008
moved to "scripting". not a solaris problem...
# 3  
Old 06-23-2008
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  
Old 06-23-2008
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Password sent via reset password email is 'weak' and won't allow me to change my password

I was unable to login and so used the "Forgotten Password' process. I was sent a NEWLY-PROVIDED password and a link through which my password could be changed. The NEWLY-PROVIDED password allowed me to login. Following the provided link I attempted to update my password to one of my own... (1 Reply)
Discussion started by: Rich Marton
1 Replies

2. Shell Programming and Scripting

[zenity] string is not displayed

I am trying to display a string in zenity: chars="\, /, <, >, ?, |, &, $" echo $chars \, /, <, >, ?, |, &, $ Now when I execute: zenity --forms --text="Chars not allowed: $chars" --add-entry="File Name" Instead of getting Chars not allowed: \, <, >, ?, |, &, $ I am getting Forms... (3 Replies)
Discussion started by: soichiro
3 Replies

3. Shell Programming and Scripting

ftp:Password field is displayed

I am trying to get a file by doing ftp to the server. The below script works fine but as I type password it is displayed as simple text. HOST='192.108.245.101' echo 'username: ' read USER echo 'password:' read PASSWD ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD lcd... (1 Reply)
Discussion started by: hiten.r.chauhan
1 Replies

4. Shell Programming and Scripting

Suppressing a message from being displayed

I have a script which checks for *.txt files in a particular directory and if no files were found then it goes into sleep for 10 secs and looks back for files again and if any files were found then the script does some processing with the files found, which is my requirement too. FILE_EXISTS=`ls... (5 Replies)
Discussion started by: vpv0002
5 Replies

5. Shell Programming and Scripting

Highlight the string displayed

Hi, Want to highlight the string displayed on the screen. ften="File selected" FB1="\e From the above code, String "File selected" gets highlighted, but the string in the next line does not get highlighted. I tried using FB1& FB2 variables but didn't worked out may be due to too... (1 Reply)
Discussion started by: milink
1 Replies

6. Shell Programming and Scripting

password getting displayed using sudo

Hi While doing the following command password is gettin dispalyed : ssh <host> "sudo command ; exit" .... while i type my password for 2nd its gettin displayed ... i tried stty -echo and stty echo ... still i am havin problem..:confused: (1 Reply)
Discussion started by: ningy
1 Replies

7. Shell Programming and Scripting

Data displayed in two lines

Hi, I am a newbie to both Linux and this forum. I was trying to pull out the data from a database but it is not showing up in the multiple lines, with my limited knowledge i linux u tried to format this but wasn't exactly getting what i wanted. The screenshot below shows my problem. ... (2 Replies)
Discussion started by: Ninjaa
2 Replies

8. Shell Programming and Scripting

How to hide password from getting displayed on screen

I am writting script like echo "ENTER USERNAME: \c " read uName echo "ENTER PASSWORD: \c" read pwd In this it is shwng password on screen, I want to hide it, how can I do that (5 Replies)
Discussion started by: scorp_rahul23
5 Replies

9. HP-UX

swlist is not displayed in HP-UX

Hi swlist command is not displayed in HP-UX ..it displays swlist: Command not found. uname -a HP-UX inccishh B.11.11 U 9000/800 4046719263 unlimited-user license :b: Best Regards vasanthan (4 Replies)
Discussion started by: vasanthan
4 Replies

10. Solaris

hostname not displayed

Hi, I posted a problem earlier on on how to change IP addresses on an E450. I was able to work around this and wanna say thanks to all who assisted. But now on my server, I get this error, trying to configure hosts..RPC timed out. Also, when I type on the command line, hostname, nothing is... (7 Replies)
Discussion started by: Ronny
7 Replies
Login or Register to Ask a Question