delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/11/17:21:59

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: mwoehlke <mwoehlke AT tibco DOT com>
Subject: Re: Accessing network drive with ssh
Date: Tue, 11 Jul 2006 16:21:27 -0500
Lines: 46
Message-ID: <e914oo$gen$1@sea.gmane.org>
References: <200607111327 DOT 59979 DOT nau AT port DOT de> <20060711113645 DOT GL8759 AT calimero DOT vinschen DOT de> <44B3CDF1 DOT 70301 AT obbligato DOT org>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5.0.4 (X11/20060516)
In-Reply-To: <44B3CDF1.70301@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:
> Corinna Vinschen wrote:
>> Searching the mailing list archives or looking into the FAQ would have
>> been of some help.
> 
> Rather than let this extremely unhelpful reply be the last word,
> I'll relate my experience.  I'm sorry, but it's nearly impossible
> to do web searches on this topic.  I know, I spent weeks doing them.
> 
> The FAQ has zero useful information about this particular issue.
> It should definitely be added.  The FAQ itself sorely needs to
> be reorganized.  Too many things are covered under too broad of
> topics.  It's very hard to find answers to specific questions.

The problem is that there are so many permutations of the problem that 
what works for one person may or may not work for another. Case in 
point, ...

> Basically, you will not be able to access network drives
> via /cygdrive or DOS-style drive letters when in an ssh
> session.  For some reason "net use" gets very confused in
> an ssh environment and the drive mapping just doesn't work.

...I have no problems getting drive letter mapping to work on one 
computer, and the only issue on the other is that the drive is, for some 
reason, read-only.

If drives are publicly readable, what WFM is to issue a bunch of 'net 
use' commands in a script that starts sshd (i.e. my sshd service 
actually runs 'bash -c <script>'). Of course, this is in a situation 
where I never need to specify a UN/PW combination.

> But you can access them via the network path name (e.g.
> //net-drive/<path>.

The problem in my case is that some things don't like being pointed at 
UNC paths (Microsoft's compiler, IIRC?), so drive letter mapping HAS to 
be used.

> You'll have to set sshd to run under your user account.

...And I don't do this. My sshd always runs as 'SYSTEM'.

-- 
Matthew
And now back to your regularly scheduled e-mail.


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