Sponsored Content
Top Forums Shell Programming and Scripting Remote call not hiding password fields Post 302427251 by Scott on Friday 4th of June 2010 10:30:21 AM
Old 06-04-2010
Hi.

One possibility:
Code:
printf "Please enter your Password for SVN: "
stty -echo
read -s passwordVar
stty echo

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Hiding password from ps

I'm calling a program with a command line arguement containing a password. while the process is running anyone on the system can ps -ef and see the password. Is there a way to prevent this from happening. example PROGRAM USERNAME/PASSWD I've also tried PROGRAM `cat passfile` ... (7 Replies)
Discussion started by: sudojo
7 Replies

2. UNIX for Dummies Questions & Answers

Hiding login/password in process!

Hello, I am trying to figure out away to hide a command from users when performing a ps check. I have a ksh that purges a table in a database. If I perform a >ps -eaf |grep ksh, I get the login id and password. I do not want other users seeing this. Is there a way to hide this. The login... (5 Replies)
Discussion started by: ctcuser
5 Replies

3. Shell Programming and Scripting

Hiding password for FTP in a script

Hi, I have a simple script to ftp from unix to a mainframe to get and put files. Currently I have the password setup in a VARS file and dereference the var in my script. Doing it this way allws me to change the password in only one place but it is still viewable for many people. Is there any... (6 Replies)
Discussion started by: Cass3
6 Replies

4. UNIX for Dummies Questions & Answers

Hiding Password

Hello. A bit of a puzzle here: I have a 3rd party executable, which requires the following parameters: parm1 = program_name, parm2=userid/password, parm3=additional flags. We tried passing password as a variable, but you can do grep, and see what the password actually is I found a bit... (2 Replies)
Discussion started by: Kishinevetz
2 Replies

5. UNIX for Advanced & Expert Users

help remote procedure call

i am beginig with unix c code for sun remote procedure call to do the following: 1- The clients reads in a variable length array from the command line 2- The client offers a menu for the user to choose what to do with the array: a. Sort the array b. Add the array c. Find max d. Find... (1 Reply)
Discussion started by: auto2000
1 Replies

6. Programming

help remote procedure call

i am beginig with unix c code for sun remote procedure call to do the following: 1- The clients reads in a variable length array from the command line 2- The client offers a menu for the user to choose what to do with the array: a. Sort the array b. Add the array c. Find max d. Find... (1 Reply)
Discussion started by: auto2000
1 Replies

7. UNIX for Dummies Questions & Answers

New Approach Hiding login password from ps -ef

Hello all , I looked up this site for solutions to hide login info from ps -ef | grep like using a seperate file and store the password in that especially for oracle sqlplus scripts. I just got this thought , But dont know how to implement this in UNIX. Is there a way to revoke access from... (17 Replies)
Discussion started by: simonsimon
17 Replies

8. Shell Programming and Scripting

Scripting help/advise on hiding/masking username/password

Hi, I currently have a UNIX script with a function that uses a username and password to connect to the database, retrieve some information and then exit. At the moment, am getting the username and password from a hidden plain text file and permission set to -r--------, i.e. read only to who... (1 Reply)
Discussion started by: newbie_01
1 Replies

9. Solaris

how to login with ssh to remote system with out applying the remote root/usr password

how to login with ssh to remote system with out applying the remote root/user password with rlogin we can ujse .rhosts file but with ssh howits possible plz guide (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

10. Shell Programming and Scripting

Password hiding in UNIX

Hi guys, I use STTY command to make the password invisible. Now I need to write the password into another file pwd.txt, but in an invisible manner, something like ******. Another thing is to when I echo the content of pwd.txt I get the password I actually typed. Thanks guys. Help me out. (5 Replies)
Discussion started by: mohanalakshmi
5 Replies
STTY(1) 						      General Commands Manual							   STTY(1)

NAME
stty - set terminal parameters SYNOPSIS
stty [-ag] stty encoded-form stty speed ispeed speed ospeed speed cs5 cs6 cs7 cs8 [-]parenb [-]parodd [-]hupcl [-]cstopb [-]cread [-]clocal [-]ignbrk [-]brkint [-]ign- par [-]parmrk [-]inpck [-]istrip [-]inlcr [-]igncr [-]icrnl [-]ixon [-]ixoff [-]ixany [-]opost [-]onlcr [-]xtabs [-]onoeot [-]isig [-]icanon [-]iexten [-]echo [-]echoe [-]echok [-]echonl [-]noflsh [-]lflusho eof=c eol=c erase=c erase=c intr=c kill=c quit=c susp=c start=c stop=c rprnt=c lnext=c flush=c min=n time=n rows n cols n cooked raw [-]evenp [-]parity [-]oddp [-]nl ek sane DESCRIPTION
Stty shows or changes the parameters of the terminal connected to standard input. Stty takes a myriad of arguments most of which are mapped directly to the flags and special characters described in tty(4), so we won't describe them here. Stty has three forms of operation. First, without any arguments stty shows all terminal attributes that are different from the default state. Option -a makes stty print all terminal attributes, and -g lets stty print the attributes in a special encoded form, a simple row of colon separated hexadecimal numbers. In the second form of operation stty takes an encoded form as produced by the -g option and sets the terminals attributes to its decoded value. In the third form stty interprets a series of flags and parameters settings and modifies the terminal attributes accordingly. Flags can be given as icanon or -icanon for instance, either setting or clearing the ICANON flag. Special character values can by set like intr=^C for example, which sets the interrupt character to CTRL-C. You can either use a real CTRL-C, or the two characters `^' and `C'. In any case it is probably necessary to use quotes to guard it from the shell: intr='^C'. A number alone is interpreted as a baud rate setting for both the input and output rate. The input or the output rate can be set sepa- rately with use of the ispeed and ospeed prefixes to the number. The character size can be set with cs5, cs6, cs7 or cs8. The MIN and TIME value, and the number of rows and columns of the window can also be set using one of the keywords min, time, rows or cols, followed by a decimal number that is the value of the setting. Stty accepts several keywords that are not named by corresponding flags or parameters in tty(4). They set several attributes at once: cooked Same as icrnl ixon opost onlcr isig icanon iexten echo, setting all the attributes that are needed for line oriented mode. raw Same as -icrnl -ixon -opost -onlcr -isig -icanon -iexten -echo, setting all the attributes for a raw data channel. evenp parity These synonyms are equal to cs7 parenb -parodd, setting the line to 7 bits even parity. oddp Same as cs7 parenb parodd, setting the line to 7 bits odd parity. -parity -evenp -oddp All synonyms for cs8 -parenb, setting the line to 8 bits, no parity. nl Same as icrnl, setting carriage return to line feed input translation. -nl Same as -icrnl -inlcr -igncr, disabling any carriage return or line feed handling. ek Set the ERASE and KILL special characters back to the default. sane Set all attributes to the default except things like the line speed and parity, because their "sane" value is probably what it is right now. The default values are compiled into stty from the <termios.h> include file. Use stty sane; stty -a to know what they are. FILES
/etc/ttytab The init field of this file may contain an stty command to set the attributes to match an attached RS232 terminal or modem. SEE ALSO
tty(4), ttytab(5). NOTES
The cooked, raw, rows and cols keywords are Minix additions beyond the keywords defined by POSIX. Rows and cols are common UNIX exten- sions, however. There are more Minix specific flags that match the Minix specific attributes described in tty(4). AUTHOR
Kees J. Bot (kjb@cs.vu.nl) STTY(1)
All times are GMT -4. The time now is 12:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy