delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/07/20:39:43

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-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 7 Apr 2003 20:39:22 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Richard Sharpe <rsharpe AT richardsharpe DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Problems with net use statement via sshd on cygwin
In-Reply-To: <Pine.LNX.4.33.0304071808460.3870-100000@ns.aus.com>
Message-ID: <Pine.GSO.4.44.0304072034490.21921-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Mon, 7 Apr 2003, Richard Sharpe wrote:

> Hi,
>
> I installed cygwin on a Win2K machine and then configured sshd (after
> including it in the install) ...
>
> However, if I do:
>
>  ssh administrator AT calpc12 net use f: \\\\\\\\10.0.1.5\\\\test \
>         /user:tigerteam\\\\rsharpe <somepasswd>
>
> (Yes, I know there are ways around all those backslashes), 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.
>
> Has anyone seen this? Is there any explanation?
>
> Regards
> Richard Sharpe

Richard,

AFAIK, "net use" requires interaction with the desktop.  If the "Allow
service to interact with the desktop" box is unchecked for your sshd
service, "net use" will not succeed.

Does the event log contain any messages?

Try allowing the interaction with the desktop for the sshd service and
running the command again.  Let the list know if it works.
	Igor
P.S. I know you said that you know about the backslashes, but it's kinda
irresistible...  Single quotes? ;-)
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


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