X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 12 Aug 2008 17:45:46 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: openssh, XP and network drives not working *with* password auth
Message-ID: <20080812154546.GU5129@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20080811090458.GA14274@shareable.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20080811090458.GA14274@shareable.org>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

