X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4C657EAC.8090006@gmail.com>
Date: Fri, 13 Aug 2010 10:19:40 -0700
From: Daniel Colascione <dan.colascione@gmail.com>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
MIME-Version: 1.0
To: cygwin@cygwin.com
CC: spc.for.nbc@gmail.com
Subject: Re: Mounting shares that require passwords
References: <AANLkTinR+8hW_en3Em4Jga-hY-u6uMqw2_jYOQxwu8Mx@mail.gmail.com>	<4C6572C4.4090501@bopp.net>	<AANLkTimfjcHK1ARo33zu0xa7hR2rzwyzS=TnTGFva_3m@mail.gmail.com>	<20100813170706.GA19281@ednor.casa.cgf.cx> <AANLkTikJA86cmgieH0--3BKYzonUv3nhOyGm_Wtjra8H@mail.gmail.com>
In-Reply-To: <AANLkTikJA86cmgieH0--3BKYzonUv3nhOyGm_Wtjra8H@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 8/13/10 10:13 AM, Steven Collins wrote:
> I'm attempting to execute "net use" from the bash command prompt in an
> xterm session that was started via the "XWin Server" menu item. The
> 'ps' command lists the TTY as "con", so I wouldn't expect to be using
> a pty. Am I? If so, is there a work around for the problem? I have
> noticed that even if I start a cmd session from cygwin that the
> problem persists.

Anything that's not a real Windows console window is a pty as far as
Cygwin is concerned, and a plain pipe as far as win32 is concerned.
Starting a cmd doesn't fix the issue because that cmd is still talking
to what it sees as a pipe.

You can just start a new console window for "net use" with cygstart; I
believe specifying the password on the command line should be fine.
Another option is trying the conin program, which uses black magic to
give a program a real console for input.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

