delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/12/11:45:50

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 12 Aug 2008 17:45:46 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: openssh, XP and network drives not working *with* password auth
Message-ID: <20080812154546.GU5129@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20080811090458 DOT GA14274 AT shareable DOT org>
MIME-Version: 1.0
In-Reply-To: <20080811090458.GA14274@shareable.org>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

On Aug 11 10:04, Jamie Lokier wrote:
> Hi,
> 
> I have a problem which at first seems to have been asked a hundred
> times:  How do I access network shares from an ssh session?
> 
> The trouble is, everything I found via Google, the Cygwin docs, FAQ
> etc. says the same thing:
> 
>     It works fine if you login with a password.
> 
>     If you login without a password, it doesn't work (unless you jump
>     through hoops.)
> 
> Unfortunately I _am_ logging in with a password, and still I don't
> have access to network shares which are already mounted, nor does "net
> use" work.  Nothing I've found says anything about this.

There's a chance that you're not logged in with the password user token.
Under some circumstances (which are, unfortunately, a bit intransparent)
Cygwin decides that the user token is not ok and creates a new one which
is then missing the network credentials you need to access your shares.

One thing you could try is th regenerate your /etc/passwd and /etc/group
files.  If you have a domain, don't forget to add the domain user and
group accounts with `mkpasswd -d' and `mkgroup -d'.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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