freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Proposed patch to datacopy to allow passwords to be read from stdin
- 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
-
[freetds] Proposed patch to datacopy to allow passwords to be read from stdin,
PublicMailbox AT benslade.com, 08/16/2012
-
Re: [freetds] Proposed patch to datacopy to allow passwords to be read from stdin,
James K. Lowden, 08/18/2012
-
Re: [freetds] Proposed patch to datacopy to allow passwords to be read from stdin,
Stuart Henderson, 08/22/2012
- Re: [freetds] Proposed patch to datacopy to allow passwords to be read from stdin, Frediano Ziglio, 08/23/2012
- Re: [freetds] Proposed patch to datacopy to allow passwords to be read from stdin, James K. Lowden, 08/24/2012
-
Re: [freetds] Proposed patch to datacopy to allow passwords to be read from stdin,
Stuart Henderson, 08/22/2012
-
Re: [freetds] Proposed patch to datacopy to allow passwords to be read from stdin,
James K. Lowden, 08/18/2012
Archive powered by MHonArc 2.6.24.