delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/29/11:34:29

X-Spam-Check-By: sourceware.org
Message-ID: <44A3F2F8.7010904@obbligato.org>
Date: Thu, 29 Jun 2006 10:34:16 -0500
From: David Greene <greened AT obbligato DOT org>
User-Agent: Thunderbird 1.5.0.4 (Windows/20060516)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Access to Network Drive under ssh
X-Cray-VirusStatus: clean
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

I know this subject has come up before but the most detailed
discussion I could find about the problem I'm having is here
http://erdelynet.com/archive/ssh-l/2002-12/0772.html
and this dates from Dec. 2002.

When I start a Cygwin xterm on the local machine, I can see
network drives just fine (these are Unix volumes mounted via
Samba):

$ net use
New connections will be remembered.


Status       Local     Remote                    Network

-------------------------------------------------------------------------------
OK           H:        \\samba-drive\dag       Microsoft Windows Network
The command completed successfully.

However, under ssh I am not so lucky:

$ net use
New connections will be remembered.


Status       Local     Remote                    Network

-------------------------------------------------------------------------------
Unavailable  H:        \\samba-drive\dag       Microsoft Windows Network
The command completed successfully.

Originally I was having problems accessing the network drive at
all under ssh but after some digging around with Google, I
learned that running ssh under the "dag" account allowed me to
get at the drives:

$ cd //samba-drive/dag

dag AT dag-xp-pc //samba-drive/dag

However, I still can't access the drive via /cygdrive/h, where
it is mounted in the non-ssh session.

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.

I'd be fine accessing things though \\samba-drive\dag
except for one thing: djgpp.  For reasons that are too
long and complicated to get into, I have to build some
software using djgpp.  It doesn't like the \\ syntax for
things like include paths (e.g. -I\\samba-drive\dag\include
isn't recognized).  The _really_ strange thing is that in a
non-ssh session, I can have the pwd in
\\samba-drive\dag\some\source\directory and pass
-I../../include to djgpp and it works great.  But in ssh,
the same -I option doesn't work.  djgpp reports an
ENOENT trying to access files in the path.

My plan was to just use H:\include everywhere but I obviously
can't do that unless I can map the drive under ssh.

This is all very confusing.  Any help?

Thanks.

                          -Dave


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