Solved

isql access using an encrypted password

Posted on 2004-08-16
3
1,921 Views
Last Modified: 2011-09-20
Hi,

Is there any way to use isql with an encrypted password ?

so with the command "isql -Uuser -Ppassword" been executed from a shell script, "password" would be encrypted - is this possible ?
0
Comment
Question by:HowardNZ2003
3 Comments
 
LVL 14

Assisted Solution

by:Jan_Franek
Jan_Franek earned 100 total points
ID: 11810458
According to isql reference on http://sybooks.sybase.com/onlinebooks/group-as/asg1250e/util/@ebt-link;pt=1092;lang=cs?target=%25N%15_15937_START_RESTART_N%25
you should use -X command line option:

-X
initiates the login connection to the server with client-side password encryption. isql (the client) specifies to the server that password encryption is desired. The server sends back an encryption key, which isql uses to encrypt your password, and the server uses the key to authenticate your password when it arrives.
0
 
LVL 6

Accepted Solution

by:
ChrisKing earned 150 total points
ID: 11810733
are you trying to encrypt the tunnel of communincations from the client to the server

order the password itself (from the OS) ?

if the latter, then try
isql -Sserver -Uuser -i script.sql < ~/.password

the ~/.password file contains the password for "user" and has been secured with: chmod 700 ~/.password
0
 

Author Comment

by:HowardNZ2003
ID: 11819205
Thanks,

it was actually how to hide the password at the OS level but all input was valuable.

0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SyBase SQL DataTime Format 6 295
Installing Sybase IQ 16.x x64 on Windows 8.1 update1 5 1,592
Executing multiple sybase statements in perl dbi 2 94
Sybase and replication server 13 39
This article describes how to reset your Windows 10 password when you've forgotten it.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question