X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=3.4 required=5.0	tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT
X-Spam-Check-By: sourceware.org
Date: Wed, 30 Nov 2011 18:18:46 +0400
From: Andrey Repin <anrdaemon@freemail.ru>
Reply-To: Andrey Repin <cygwin@cygwin.com>
Message-ID: <816315728.20111130181846@mtu-net.ru>
To: Corinna Vinschen <cygwin@cygwin.com>
Subject: Re: Passwordless sftp with ssh 5.9 still asks for password
In-Reply-To: <20111130091854.GA11195@calimero.vinschen.de>
References: <9E9DD545D034B84B935BB50A739B078B0551DD6893@sha-exch12.shared.ifeltd.com> <4ED56819.6050707@etr-usa.com> <923130286.20111130123814@mtu-net.ru> <20111130091854.GA11195@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
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

Greetings, Corinna Vinschen!

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

That explains it, thanks.

> Otherwise, if -p isn't used and the SAM/AD homedir is empty, the fallback is
> /home/$USER again.


--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 30.11.2011, <18:17>

Sorry for my terrible english...


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

