X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Wed, 30 Nov 2011 10:18:54 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Passwordless sftp with ssh 5.9 still asks for password
Message-ID: <20111130091854.GA11195@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <9E9DD545D034B84B935BB50A739B078B0551DD6893@sha-exch12.shared.ifeltd.com> <4ED56819.6050707@etr-usa.com> <923130286.20111130123814@mtu-net.ru>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <923130286.20111130123814@mtu-net.ru>
User-Agent: Mutt/1.5.21 (2010-09-15)
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 Nov 30 12:38, Andrey Repin wrote:
> Greetings, Warren Young!
> 
> >> Accept the default
> >> key location, C:\Documents and Settings\nhuser\.ssh\id_dsa,
> 
> > Why would that be the default location, if you are using Cygwin tools? 
> > Shouldn't it be something like c:\cygwin\home\nhuser\.ssh\...?
> 
> Why?
> 
> > You can change your HOME to anything you like, but that's not the default
> > with Cygwin.
> 
> Are you sure?
> Last time I checked, $HOME in newly installed Cygwin point to the $USERPROFILE
> Which is, quite, logical.

Just to be clear, that's not done by the Cygwin DLL.  When setting HOME,
the order is very simple:

- If $HOME is already set in the environment, leave it alone.
- Otherwise, grab home dir from /etc/passwd.
- If /etc/passwd doesn't exist or if the homedir field is empty,
  set HOME to /home/$USER.

If $HOME points to $USERPROFILE, it's because that value is set in
/etc/passwd.  mkpasswd, for instance, reads the homedir path from the
local SAM or AD and uses it, unless the -p option is used.  Otherwise,
if -p isn't used and the SAM/AD homedir is empty, the fallback is
/home/$USER again.


Corinna

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

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

