11-22-2006
Quote:
funksen, is there a way to pass that encrypted password to the command in my script?
SD
Reply With Quote
I don't think so, the command expects the password in cleartext and not the encrypted password
in your case I would rather use sudo and specify the "su" command for use without a password
10 More Discussions You Might Find Interesting
1. Programming
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
2. Shell Programming and Scripting
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
3. Shell Programming and Scripting
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
4. Shell Programming and Scripting
I have a properties file that contains passwords, need to hide the passwords before the properties file can be distributed.
Input file:
prop1=1
prop2=2
password=123456 this is a test pw
prop3=3
password=789abc this is a prod pw
My sed command is:
sed 's/password=.*/password=xxx/g' <... (3 Replies)
Discussion started by: oakwoodman
3 Replies
5. UNIX for Dummies Questions & Answers
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
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
Hi
I have following problem Im writing a script (in bash ) , where need to be written login & passwd for databas client .
Its need to in following form login passwd@dbhostname .
The problem is so anybody can read it so the passwd & login are visible and thats not very safety .
Can... (8 Replies)
Discussion started by: kvok
8 Replies
8. Shell Programming and Scripting
i have an expect script that runs like this:
/usr/bin/expect -f /home/skysmart/commandstoexecute.sh host2.net b$4aff Skysmart
when i run this command, and i do a ps -ef and egrep for expect, i see the exact line in the process table and it shows my password for the world to see.
how can i... (2 Replies)
Discussion started by: SkySmart
2 Replies
9. Shell Programming and Scripting
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
10. Shell Programming and Scripting
I am writing a shell script for sql loader (just copy part of the code) :
For security reason, I have to put the below loginName and password into another separate file instead of in the same file of this script.
Anyone can give me a hand. Thanks.
Shell Script :... (12 Replies)
Discussion started by: Jaewong
12 Replies
LEARN ABOUT DEBIAN
dircproxy-crypt
dircproxy-crypt(1) General Commands Manual dircproxy-crypt(1)
NAME
dircproxy-crypt - Generate encrypted password for dircproxy
SYNOPSIS
dircproxy-crypt [-hv] [password]...
DESCRIPTION
dircproxy-crypt generates encrypted passwords for the dircproxy(1) configuration file. These passwords are used in the 'password' configu-
ration option of a connection class, and are compared to the password you configure your IRC client to use.
If you do not supply any plain text passwords to encrypt on the command line then dircproxy-crypt, when run, will ask you for one on stan-
dard input. It will display the encrypted version of each password, created using your system's crypt(3) function and a random salt, on
standard output.
OPTIONS
-h Displays a brief help message detailing the command-line arguments, then exits.
-v Displays the dircproxy version number that this version of dircproxy-crypt comes with, then exits.
SEE ALSO
dircproxy(1) crypt(3)
BUGS
Please submit and review bug reports at:
http://bugzilla.dircproxy.net/
AUTHOR
Written by Scott James Remnant <scott@netsplit.com>.
COPYRIGHT
Copyright (C) 2002 Scott James Remnant. All Rights Reserved. dircproxy is distributed under the GNU General Public License.
11 Jan 2001 dircproxy-crypt(1)