Skip to Content.
Sympa Menu

freetds - Re: [freetds] Proposed patch to datacopy to allow passwords to be read from stdin

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Proposed patch to datacopy to allow passwords to be read from stdin
  • Date: Thu, 23 Aug 2012 15:38:38 +0100

2012/8/23 Stuart Henderson <stu AT spacehopper.org>:
> On 2012-08-18, James K. Lowden <jklowden AT freetds.org> wrote:
>> I had a script such as
>>
>> #! /bin/sh
>> awk "\$2 == \"$1\" {print \$6}" ~/.netrc
>>
>> called "getpass". Now the command:
>>
>> datacopy -S$S/$U/$(getpass $S)/$D/$T ...
>>
>> does the job.
>
> This still shows in the command line, though.
>

I agree passing a password on command line is a security risk.

If I remember many of our tools ask for password if argument is
omitted. We use a readpassphrase function to read the password in a
portable and threadsafe way. In this case we cannot omit the password
and perhaps empty password is more common than a single dash.

Frediano




Archive powered by MHonArc 2.6.24.

Top of Page