Hiding Passwords while typing..


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Hiding Passwords while typing..
# 1  
Old 07-27-2007
Hiding Passwords while typing..

Hi,

We need ur advice,...
We are integrating our application (oracle) with OID,and OID is with another team.
While integrating they have to provide their 'ADMIN-password' when the script prompts ,But the password they are about type is visible.
If this is the case they are denying it,....
Is there any way to hide the password what they are typing..

We hav to configure this in VNC session,and they will provide simply their password..and leave the session......

Hope I am clear.......Itz little bit URGENT..!!

Regrards
# 2  
Old 07-28-2007
In your script add these lines:
Code:
stty -echo    
	echo -n "Enter database password:  "
	read DB_password
stty echo

"stty -echo" turns off all echo to term.
-GGR
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. HP-UX

@ typing creates new line

Dear Concern, Please go through the article https://www.unix.com/hp-ux/134072-typing-sign-creates-new-line.html As per the article, we need to initiate below commands. But after creating new session, we face same problem. Please advise. stty intr "^c" stty kill "^u" Please find below... (6 Replies)
Discussion started by: makauser
6 Replies

2. Shell Programming and Scripting

Zero typing problem!

H, I I have this below script for removing the full path from a string which is indeed a filepath location if windows. It converts input \abc\asssh\abc To abc But if filename has 0 like: \abc\abc\00000Hgg Then its typing abc00000Hgg PLEASE note that its solaris. Script is: more... (10 Replies)
Discussion started by: nixhead
10 Replies

3. UNIX for Dummies Questions & Answers

No $ when typing cw

Hi As a dummy my question is very simple. When typing cw I've read (many times) that a '$' should appear at the end of the word I'm about to change. However, it doesn't, and in my case the word is instantly deleted and so ready to be changed! Can somebody tell me why this is, or maybe I... (4 Replies)
Discussion started by: joesh
4 Replies

4. UNIX for Advanced & Expert Users

When did UNIX start using encrypted passwords, and not displaying passwords when you type them in?

I've been using various versions of UNIX and Linux since 1993, and I've never run across one that showed your password as you type it in when you log in, or one that stored passwords in plain text rather than encrypted. I'm writing a script for work for a security audit, and two of the... (5 Replies)
Discussion started by: Anne Neville
5 Replies

5. UNIX for Advanced & Expert Users

Determining typing latency

Hi all, When I use an editor (vi) that is spawned in a remote server, visually I could see the latency between typing a character/word and being displayed on the terminal. I could see this visually but how do I get a metric on this or how to quantify this? As expected, when I type in a editor... (6 Replies)
Discussion started by: matrixmadhan
6 Replies

6. Shell Programming and Scripting

No output to CL when typing in CL.

Hello all, I am in a terminal on Solaris and something weird is happening... When I am typing I can't see what I am typing, although what I am typing is working. As is if I type the command and hit enter, the command runs. Anyone have a clue why or how I can make it display my typing? Is... (2 Replies)
Discussion started by: komputersman
2 Replies

7. UNIX for Dummies Questions & Answers

Stuck after typing goto

uname -a returns: SMP Tue May 17 17:52:23 EDT 2005 i686 athlon i386 GNU/Linux I have many aliases beginning with "goto" so... if I type goto and then hit return (oops) A goto prompt pops up and I cant exit from it(I tried MANY key seqs) The only way to exit is to kill the term window... (2 Replies)
Discussion started by: rairey
2 Replies
Login or Register to Ask a Question