delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/08/11:51:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
Subject: Re: Problems with net use statement via sshd on cygwin
Date: Tue, 8 Apr 2003 17:49:25 +0200
Lines: 59
Message-ID: <lufy3wtszxa6$.dlg@thorstenkampe.de>
References: <gmsk91dpkhcf$.dlg AT thorstenkampe DOT de> <Pine DOT GSO DOT 4 DOT 44 DOT 0304081113340 DOT 21921-100000 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: 40tude_Dialog/2.0.3.1

* Igor Pechtchanski (03-04-08 17:24 +0100)
> On Tue, 8 Apr 2003, Thorsten Kampe wrote:
>> * Richard Sharpe (03-04-08 03:14 +0100)
>>> However, if I do:
>>>
>>>  ssh administrator AT calpc12 net use f: \\\\\\\\10.0.1.5\\\\test \
>>>       /user:tigerteam\\\\rsharpe <somepasswd>
>>>
>>> [...] it appears to succeed, but the share is listed as unavailable in
>>> Windows, and I cannot access it via 'dir f:' for example.
>>>
>>> The drive letter f: did not have any thing mapped to it before the ssh
>>> command above.
>>
>> Is "SMBNTSEC" set? Try logging in and then executing manually "net
>> use". Have a look at the "Event Viewer" and "/var/log/sshd.log".
> 
> Surely you mean "smbntsec" (lowercase)...

Yes.
 
>> I have been able to even access a NetWare volume through "net use".
>> The only "annoyance" I encountered was, that drive mappings made under
>> a different account (under the windows GUI) were shown, too. I think
>> other people mentioned this.
> 
> Hmm, I'm intrigued now.  Perhaps we can get to the bottom of this.
> 
> I have a Samba share that I connect to (from Win2k SP3, Cygwin-1.3.22).

There are lots of problems with Windows 2000 showing the network drive 
disconnected (crossed out in red) in the GUI. My experience was with 
NT 4.

> If I run "net use" from a local bash shell, I get
> [...]
> When I do it from an ssh session, however, I get the following:
> $ net use
> New connections will be remembered.
> Status       Local     Remote                    Network
> -------------------------------------------------------------------------------
> Unavailable  E:        \\samba.watson.ibm.com\igor
 
> Note that the UNC share itself is *not* shown at all, and the drive is
> shown as unavailable.  Attempting to access "//samba.watson.ibm.com/igor"
> results in a "permission denied", as does a "net use..." command with the
> correct credentials.

I alway changed to the NetWare volume or NT share with
"cd /cygdrive/e/...". 

"net use" doesn't work with NetWare volumes; the mapping was from 
within the GUI login.)

Thorsten
-- 
 Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory)
 Content-Transfer-Warning: message contains innuendos not suited for
 children under the age of 18


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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