Mail Archives: cygwin/2010/08/13/13:13:59
X-Recipient: | archive-cygwin AT delorie DOT com
|
X-SWARE-Spam-Status: | No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,TW_CG,T_TO_NO_BRKTS_FREEMAIL
|
X-Spam-Check-By: | sourceware.org
|
MIME-Version: | 1.0
|
In-Reply-To: | <20100813170706.GA19281@ednor.casa.cgf.cx>
|
References: | <AANLkTinR+8hW_en3Em4Jga-hY-u6uMqw2_jYOQxwu8Mx AT mail DOT gmail DOT com> <4C6572C4 DOT 4090501 AT bopp DOT net> <AANLkTimfjcHK1ARo33zu0xa7hR2rzwyzS=TnTGFva_3m AT mail DOT gmail DOT com> <20100813170706 DOT GA19281 AT ednor DOT casa DOT cgf DOT cx>
|
Date: | Fri, 13 Aug 2010 11:13:41 -0600
|
Message-ID: | <AANLkTikJA86cmgieH0--3BKYzonUv3nhOyGm_Wtjra8H@mail.gmail.com>
|
Subject: | Re: Mounting shares that require passwords
|
From: | Steven Collins <spc DOT for DOT nbc AT gmail DOT com>
|
To: | cygwin AT cygwin DOT com
|
X-IsSubscribed: | yes
|
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm
|
List-Id: | <cygwin.cygwin.com>
|
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
|
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com>
|
List-Archive: | <http://sourceware.org/ml/cygwin/>
|
List-Post: | <mailto:cygwin AT cygwin DOT com>
|
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
|
Sender: | cygwin-owner AT cygwin DOT com
|
Mail-Followup-To: | cygwin AT cygwin DOT com
|
Delivered-To: | mailing list cygwin AT cygwin DOT com
|
On Fri, Aug 13, 2010 at 11:07, Christopher Faylor <> wrote:
> On Fri, Aug 13, 2010 at 10:56:55AM -0600, Steven Collins wrote:
>>On Fri, Aug 13, 2010 at 10:28, Jeremy Bopp <> wrote:
>>> On 8/13/2010 11:24 AM, Steven Collins wrote:
>>>> Is there some way within cygwin to successfully mount a share that
>>>> requires a password. Until I run the "net use" command or other
>>>> Windows application to open the share with the password Cygwin is
>>>> unable to access it. The best I've come up with so far is to run the
>>>> "net use" from my .bashrc. Is there a better way to handle this?
>>>
>>> Cygwin doesn't really mount anything. ?It just creates a path
>>> translation table which is used to convert POSIX paths into their
>>> equivalent Windows paths. ?So if you need to enter a password to access
>>> the share using a Windows program or net use the path first, the same
>>> will be true for Cygwin.
>>
>>It would be nice though if Cygwin would recognize that it was trying
>>to access a share and that a password is required.
>
> Cygwin is a general-purpose DLL. =A0It can't stop what it is doing and ask
> the user for input.
>
>>I've actually run into an issue with my "net use" solution. Under
>>cygwin the command will prompt me for my password, but then it
>>immediately fails for a bad password. I'm never actually given a
>>chance to enter the password. If I enter the password on the command
>>line the command succeeds, but that is not an acceptable solution as
>>it means my password is in the clear. Any ideas on why this is
>>happening?
>
> Probably you're trying to run the "net use" command from a pty in mintty,
> rxvt, or ssh and "net use" doesn't recognize cygwin ptys.
>
> cgf
>
> --
> Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html
> FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
> Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
> Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple
>
>
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.
Regards,
Steven
--
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
- Raw text -