Sponsored Content
Top Forums Shell Programming and Scripting How to hide password from getting displayed on screen Post 302239277 by scorp_rahul23 on Tuesday 23rd of September 2008 08:20:34 AM
Old 09-23-2008
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

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

need to hide output to screen

I have a script that askes users to enter in an oracle account and password, The information is displayed on the screen as they type it. Does anyone know how I can hide this output? :confused: (1 Reply)
Discussion started by: boat73
1 Replies

2. Programming

hide password typing

I am doing a project in C program which requires to type in password in Unix terminal. Does anybody know how to shade or not output any words typed by user in the terminal? I use the function scan() to read typing from user. Thanks in advance. (2 Replies)
Discussion started by: ivancheung
2 Replies

3. Shell Programming and Scripting

How to hide password on Linux?

Hi falks, I have the following ksh code: echo "Enter VS Admin password:" oldstty=`stty -g` stty -echo intr '$-' read password stty $oldstty echo This code ask from a user to enter his password. The OS suppose to hide the entering of the... (2 Replies)
Discussion started by: nir_s
2 Replies

4. Shell Programming and Scripting

Want to hide password

All, In my script I am calling another script.. in that script I need to enter a password. Problem is that everyone is able to see the password when I enter that. Is there any way that when i enter that password it should not display or may look like *******. Or if there any other way that I... (1 Reply)
Discussion started by: arpitk
1 Replies

5. Shell Programming and Scripting

How Do I Hide the Password in a Script

Hi, I am writing a UNIX .ksh script and need to send the login password of the login id that is executing the script to a command that I am executing in the script. I don't want that password to be seen by anyone except whoever is executing the script. Does anyone know how I can accomplish... (6 Replies)
Discussion started by: samd
6 Replies

6. Shell Programming and Scripting

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... (3 Replies)
Discussion started by: shafi2all
3 Replies

7. 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

8. UNIX for Dummies Questions & Answers

How can i hide username/password

hi all, i run sqlplus command on unix(HP-UX) like "sqlplus username/password@serverA @deneme.sql" but when someone run "ps -ef | grep sqlplus", it can see my username and password :( How can i hide username and password. thanx. (1 Reply)
Discussion started by: temhem
1 Replies

9. 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

10. Red Hat

grub splash screen not displayed

I re-installed grub on /dev/sdb on a 3ware raid machine and now the grub splash screen is not displayed when booting. Server when boots up comes and halt in the grub menu and I need to manually load kernel and initrd to get the machine up. I have not changed any grub setting. I used the command... (0 Replies)
Discussion started by: anil510
0 Replies
PLYMOUTH(1)							   User Commands						       PLYMOUTH(1)

NAME
plymouth - Send commands to plymouthd SYNOPSIS
plymouth [OPTION...] plymouth COMMAND [OPTION...] DESCRIPTION
The plymouth sends commands to a running plymouthd. This is used during the boot process to control the display of the graphical boot splash. OPTIONS
The following options are understood. These options are supported for compatibility with the old rhgb-client interface, and have been replaced by the commands that are described in the next section. --help Show summary of options. --debug Enable verbose debug logging. --get-splash-plugin-path Get directory where splash plugins are installed. --newroot=[STRING] Tell plymouthd that the new root filesystem is mounted. --quit Tell plymouthd to quit. --ping Check if plymouthd is running. --has-active-vt Check if plymouthd has an active vt. --sysinit Tell plymouthd root filesystem is mounted read-write. --show-splash Show the splash screen. --hide-splash Hide the splash screen. --ask-for-password Ask the user for a password. --ignore-keystroke=[STRING] Remove sensitivity to a keystroke. --update=[STRING] Tell plymouthd an update about boot progress. --details Tell plymouthd there were errors during boot. --wait Wait for plymouthd to quit. COMMANDS
The following commands are understood: change-mode OPTION Change the operation mode. --boot-up Start the system up --shutdown Shutting the system up --updates Applying updates system-update OPTION Tell plymouthd about boot progress. --progress=INTEGER The percentage progress of the updates update OPTION Tell plymouthd about boot status changes. --status=STRING Tell plymouthd the current boot status update-root-fs OPTION Tell plymouthd about root filesystem changes. --new-root-dir=STRING Root filesystem is about to change --read-write Root filesystem is no longer read-only show-splash Tell plymouthd to show splash screen. hide-splash Tell plymouthd to hide splash screen. ask-for-password OPTION Ask the user for a password. --command=STRING Command to send password to via standard input --prompt=STRING Message to display when asking for password --number-of-tries=INTEGER Number of times to ask before giving up (requires --command) --dont-pause-progress Don't pause boot progress bar while asking ask-question Ask the user a question. --command=STRING Command to send the answer to via standard input --prompt=STRING Message to display when asking the question --dont-pause-progress Don't pause boot progress bar while asking display-message OPTION Display a message. --text=STRING The message text hide-message OPTION Hide a message. --text=STRING The message text watch-keystroke OPTION Become sensitive to a keystroke. --command=STRING Command to send keystroke to via standard input --keys=STRING Keys to become sensitive to ignore-keystroke OPTION Remove sensitivity to a keystroke. --keys=STRING Keys to remove sensitivitiy from pause-progress Pause boot progress bar. unpause-progress Unpause boot progress bar. report-error Tell plymouthd there were errors during boot. deactivate Tell plymouthd to deactivate. reactivate Tell plymouthd to reactivate. quit OPTION Tell plymouthd to quit. --retain-splash Don't explicitly hide boot splash on exit SEE ALSO
grub(8), plymouth(8), plymouthd(8), http://www.freedesktop.org/wiki/Software/Plymouth plymouth PLYMOUTH(1)
All times are GMT -4. The time now is 02:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy