pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: raghavendra.rao@enterprisedb.com
To: pgsql-bugs@postgresql.org
Subject: BUG #8438: Usage of Pipe operator in Windows(CMD.exe) shows the password typed with any PG utility.
Date: Fri, 06 Sep 2013 05:35:57 +0000
Message-ID: <E1VHoi5-000217-I4@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      8438
Logged by:          Raghav
Email address:      raghavendra.rao@enterprisedb.com
PostgreSQL version: 9.2.2
Operating system:   Windows
Description:        

Hi,


I have PostgreSQL 9.2 instance on Windows 7 running in MD5 authentication
mode. Anytime I connect I need to pass the password for connection. When I
try to connect from command prompt using PIPE ('|") operator; and the
password I type is visible(shown) instead of hiding it. For example in
linux, any password typed when prompted will not show it just hides it.
Which seems not the same in windows. Please look at the example below:


1. Go to command prompt (runas /user:postgres "cmd.exe")


2. Pass the some command using pipe operator to Psql (or any utility).


c:\Program Files\PostgreSQL\9.2\bin>echo select version(); | psql -p 5433
Password: postgres


                           version
-------------------------------------------------------------
 PostgreSQL 9.2.2, compiled by Visual C++ build 1600, 32-bit
(1 row)


If you see above output, the password I typed as "postgres" is clearly
visible. I didn't tried to reproduce on any other version of PG or Windows.
Below are my version details:


Operating System: Windows 7 64 bit
PostgreSQL: PostgreSQL 9.2.2


For any further information required, I would be glad to share if its sent
to my email id: raghavendra.rao@enterprisedb.com.


Thank you .
 
---
Regards,
Raghavendra
EnterpriseDB Corporation



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)  latest in thread

Message-ID: <E1VHoi5-000217-I4@wrigleys.postgresql.org>
Permalink:  ../E1VHoi5-000217-I4@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1VHoi5-000217-I4@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: raghavendra.rao@enterprisedb.com
  Subject: Re: BUG #8438: Usage of Pipe operator in Windows(CMD.exe) shows the password typed with any PG utility.
  In-Reply-To: <E1VHoi5-000217-I4@wrigleys.postgresql.org>
  References: <E1VHoi5-000217-I4@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox