X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0	tests=AWL,BAYES_00,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Date: Tue, 24 Aug 2010 13:57:32 -0700
From: Quanah Gibson-Mount <quanah@zimbra.com>
To: cygwin@cygwin.com
Subject: Re: Network drives & ssh access
Message-ID: <961FFD6E19B6070B595AE3F4@[192.168.1.2]>
In-Reply-To: <4C743056.50300@cygwin.com>
References: <13D45C6CDAB7C51EF7CDC050@[192.168.1.2]> <4C732336.6020806@cygwin.com> <1C018B15ED56529CD242DC44@[192.168.1.2]> <DD4E52CFB8D58B3E571E516B@[192.168.1.2]> <4C73FF2D.2030903@cygwin.com> <D655A54A1491442CF048CBC6@[192.168.1.2]> <4C743056.50300@cygwin.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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 Tuesday, August 24, 2010 4:49 PM -0400 "Larry Hall (Cygwin)" wrote:

>> However, I set up the share using net use \\IP\share /savecreds, and that
>> does mount the drive to Windows at least every time without prompting,
>> and Cygwin locally is able to use it. It is only an issue with the SSH
>> connection.
>
> Well, that's a completely different thing then.  You need Windows to
> authenticate that share as the other user then.  I think you're stuck
> with "net use" option of the FAQ.  You can either invoke it each time
> you log in via ssh, put it in your favorite rc file, or have a separate
> script to do it (which you'd invoke each time).

I've yet to get "net use" to work for me via cygwin.

net use Z: \\W.X.Y.Z\Share <password>

tries to prompt me with a question:

Z: has a remembered connection to \\W.X.Y.Z\Share.  Do you want to 
overwrite the remembered connection? (Y/N) [Y]:
No valid response was provided

I.e., it never gives me the opportunity to answer the question.

If I try changing the drive letter, I get error 67, the network name cannot 
be found.

Note that "net use" by itself continues to show the "Unavailable" status 
for the Z: drive with that share.

--Quanah


--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration

--
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

