delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/29/12:35:28

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: mwoehlke <mwoehlke AT tibco DOT com>
Subject: Re: Access to Network Drive under ssh
Date: Thu, 29 Jun 2006 11:34:57 -0500
Lines: 30
Message-ID: <e80vfi$g0k$1@sea.gmane.org>
References: <44A3F2F8 DOT 7010904 AT obbligato DOT org>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5.0.4 (X11/20060516)
In-Reply-To: <44A3F2F8.7010904@obbligato.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

David Greene wrote:
> I tried to do a manual mount with no success:
> 
> $ net use H: \\samba-drive\dag
> H: has a remembered connection to \\samba-drive\dag. Do you
> want to overwrite the remembered connection? (Y/N) [Y]:
> No valid response was provided.
> 
> The strange thing here is that "net use" didn't even wait
> for me to answer the question.

Yup, 'net' doesn't understand tty's (which is what you get with ssh). 
Basically, if 'net' needs to ask you anything, it won't work, and your 
only recourse is to complain to Microsoft.

Since you've let the cat out of the bag, my own problem is a little 
stranger. I can see my drives just fine, but for some reason I can't 
write to them (works fine from a 'at the glass' session). Worse, it only 
happens on my Win2K3 computer; my XP one, using almost the exact same 
setup otherwise, is fine.

Anyway, the way I generally get things... well, closer to working, is to 
create a service that calls 'bash -c <some-sshd-init-script>', and have 
the script issue a bunch of 'net use <foo> <bar>' commands and then exec 
sshd. That way you don't have to worry about connections being 
remembered, because they will always be created for you when sshd starts up.

-- 
Matthew
Do not expose to extreme heat, cold, or open flame.


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019