Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VHoiK-0005EB-Uy for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Sep 2013 05:36:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VHoiK-0007zI-9h for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Sep 2013 05:36:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VHoiJ-0007zB-D4 for pgsql-bugs@postgresql.org; Fri, 06 Sep 2013 05:36:11 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VHoiC-0004PV-4P for pgsql-bugs@postgresql.org; Fri, 06 Sep 2013 05:36:11 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VHoiA-0004iW-S3 for pgsql-bugs@postgresql.org; Fri, 06 Sep 2013 05:36:03 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1VHoi5-000217-I4 for pgsql-bugs@postgresql.org; Fri, 06 Sep 2013 05:35:57 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8438: Usage of Pipe operator in Windows(CMD.exe) shows the password typed with any PG utility. To: pgsql-bugs@postgresql.org From: raghavendra.rao@enterprisedb.com Message-Id: Date: Fri, 06 Sep 2013 05:35:57 +0000 X-Pg-Spam-Score: -4.3 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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