Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Commands with passwords as options
- X-seq: zsh-users 15755
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- Subject: Re: Commands with passwords as options
- Date: Tue, 1 Feb 2011 23:57:41 +0100
- Cc: Julien Nicoulaud <julien.nicoulaud@xxxxxxxxx>, zsh-users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=qZtZtPPdScBqrK8YmFgjH9JyFHKL/dIbb4mdMp4oUdk=; b=MsobPpx5LgV7agHyDCpjr8Pw7k5IAAOdRQa+j3mx4WblGWOoDIYaO+XECKHEFi1844 pdKS+i0x7fAt7Rlly/ykNHAOrjL3De/yGnK1Z6Lr06JqY/uMmXlrqQOxDVVU8sb9ksZz zg6BfSCzu/CiaRiQH2An0PdbsObHh3YM8YQ5I=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=AK6ZiJRj7kK7b5cki48OC8ZhfiPo2Wqs6CtHRXmPzvxFXymw9RTwUnecv78HVPp+RU hY408cXSyhtrggBBI5TdQyj1Auw+QuiqIropYzUOh1lPCsDBpBRuPNwpxYJoheQUHxU+ Bi7XdcO61di3n1MnRnTVofLgYaTGNdwO96Snk=
- In-reply-to: <alpine.LNX.2.01.1102011726120.2792@hp>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <AANLkTi=vmDkSaef2r-gaMK=6en=EYyCsWbVppRsPwF5r@mail.gmail.com> <AANLkTik-C+PD67k2FTySFCfpcZe4yTfDTWwRWp9DaB5A@mail.gmail.com> <AANLkTikajPjd=r1CSrZnPCLnNFMS-y7KX1TKskQVvv1X@mail.gmail.com> <alpine.LNX.2.01.1102011726120.2792@hp>
On 1 February 2011 23:40, Benjamin R. Haskell <zsh@xxxxxxxxxx> wrote:
> On Tue, 1 Feb 2011, Julien Nicoulaud wrote:
>
>> OK, but at least it is hidden from the shell "UI". Take it as
>> "man-looking-over-your shoulder" protection :-) For example you show
>> something to someone, you do a backward history search and a command with a
>> clear text password you forgot to exclude from history pops out...
>
> In general, just avoid ever using such options. But, if you get lazy, two
> ways around it that I use:
>
> # method 1, use a var:
> $ read DBPASSWORD
> *password*here*
> $ <ctrl-l> to clear screen
You can use read -s here and the password will not be echoed to the
screen as you type it. For cat you can use "STTY=-echo cat"
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author