Sponsored Content
Full Discussion: hide password typing
Top Forums Programming hide password typing Post 56315 by ivancheung on Thursday 30th of September 2004 01:05:12 PM
Old 09-30-2004
Driver,

thanks very much for help. I have find the solution. Your code works.
 

10 More Discussions You Might Find Interesting

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

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

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

4. Shell Programming and Scripting

cronjob on a remote ssh without typing password

Hi there, How can I send a script to a remote ssh client. 1) I cannot connect through ftp 2) I just need to read a file on a remote server. Here is what I do: ~$ ssh santiago@myserver.com santiago@myserver.com's password: santiago@myserver:~$ cat logfile hello world bonjour le monde hola... (1 Reply)
Discussion started by: chebarbudo
1 Replies

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

6. Shell Programming and Scripting

Best way to hide password in bash script?

Dear folks, The title of my thread says mostly all of what I want to do. Basically I want to auto-ssh to a remote host, and run a program on it (VLC is just an example). I wrote a script which calls xterm and then runs expect on it. The code is as follow #!/bin/bash export PASS="xxxxxxx"... (22 Replies)
Discussion started by: dukevn
22 Replies

7. Shell Programming and Scripting

Encrypt password but use * when typing password

Hi, I came across the following script for encrypting the password in this forum #! /usr/bin/ksh exec 4>/dev/tty function getpass { typeset prompt=$1 typeset backspace=$(echo \\b\\c) typeset enter=$(echo \\r\\c) typeset savesetting=$(stty -g) ... (9 Replies)
Discussion started by: dbashyam
9 Replies

8. AIX

SSH session closes after typing correct password

hi guys need some help. when ever i'm login ssh to aix server session always closed. when trying t0 type wrong password the session still continues, but we tried the correct password it automatically ends. what could be the problem to this please see .profile details ... (6 Replies)
Discussion started by: bocha
6 Replies

9. UNIX for Dummies Questions & Answers

How to hide password when using echo cmd?

Hi Am using unix Aix Ksh I need to hide the password using echo cmd Connecting the database and fetching ip_address and password from one table. greping the IP_address and password using two variable IP_addr Pawd Then Used echo cmd echo " connecting to $IP-addr and $Pawd" ... (3 Replies)
Discussion started by: Venkatesh1
3 Replies

10. Shell Programming and Scripting

Hide password from processes in Linux

i have a shell script which calls a java program with username and password arguments. #!/bin/ksh #set some classpaths here #finally run the command java com.test -u $U -p $P Now when i run it, the password shows up in the list of processes. I am not the admin on the server so cant... (3 Replies)
Discussion started by: ariesb2b
3 Replies
LLOGIN(1)						      General Commands Manual							 LLOGIN(1)

NAME
llogin - Connect to a LAT service SYNOPSIS
llogin [options] service Options: [-dvcpblhQ] [-H node] [-R port] [-n name] [-w password | -W] [-q quit char] DESCRIPTION
llogin connects your terminal to a LAT service via latd, the service name must be known to latd for this to work. OPTIONS
-d Shows learned services. This is the same as latcp -d -l -d -v Verbose form of -d. -v without -d is ignored. -H <node> Remote nodename. If the service is advertised by more than one node and you want to connect to a particular node then use this switch. By default you will be connected to the node with the highest rating. -R <port> Connect to a specific port on (usually) a terminal server. This is the port NAME on the server and not the port number. -c Do not convert typed LF to CR. By default the enter key generates LF and llogin converts it CR as it is the most generically useful translation. This switch will cause the enter key to send LF instead. Occasionally useful for connecting to Unix consoles. -b Convert typed DEL to BS. By default the DEL key (keyboard, top right usually) send DEL (ASCII 0x7f) to the remote system. This switch will cause the DEL key to send BS (ASCII 8) instead. Useful for some Unix systems connected via terminal servers. -l Convert output LF to VT. By default LF output is sent as CRLF which can cause output formatting problems. Changing this to VT should preserve the output formatting on most devices or terminal emulators. -q <char> Change the quit character. By default CTRL-] will quit the terminal session. Entering a character after -q will cause CTRL-<char> to be the quit character for that session. -q0 will disable the quit character. If you use the latter, make sure you are connecting to a service that will disconnect you when you log out or you will have to kill llogin from another session to get out of it! -Q Tells latd that the service you are connecting to is queued service and not a normal login service or port service. Unfortunately latd cannot tell whether a remote service needs to be queued or not so the onus is on the user to specify this switch when connect- ing to a queued service. -n <name> Sets the local connection name. By default this will be your local TTY name. In most cases this simply affects the display of the terminal on the remote end so you shouldn't need to change it. -w <password> Sends the password for the service. Only needed for services that require a password for access. If the password given is "-" then you will be prompted for a password and it will not be echoed. This avoids having passwords visible on the screen. -W Prompts for the service password. This is the same as -w- (see above). -p Tells llogin to connect to the device named instead of a LAT service. This would usually be a /dev/lat pseudo-terminal but could be any other device you like really. This switch does not make the program useful as a terminal program because there is no way to set any serial parameters, nor am I going to add them. This is just a convenient way to use the /dev/lat ports without the overhead of programs such as minicom. -h Displays a brief usage description. This is the same as invoking llogin without any parameters at all. SEE ALSO latcp(8), latd(8) LAT utilities January 3 2002 LLOGIN(1)
All times are GMT -4. The time now is 01:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy