delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/02/19/14:25:39

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; q=dns; s=default; b=jmy5ogJcDmVInfx+HMBmlDwK8SEpQ
XF/4LwsUFjiM1RVco3PhACoV51ButesHkljlTdV6Zhwss06RGJQ3Gqpmq9J2+YVT
L1uQ2UVRk3v5mM2PXJcJ36BjjjuwmwSph5KWqtfHEm6yNLBMS5GKnjzB5n7DPydb
VXgQaZLVJwVbDY=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; s=default; bh=Oac58ihN+kOlDvgGOz0IRhy4Vq8=; b=tv2
xBTTxQDDAUhyPYC+jLzKVKtUmqo4bJOkLdH0ssL9x/wKNl4y8/RvLGq5rXUEBchx
7N6gIW5rQqkMAorDUm2ehguLlWDU/MRiiOEMLEbWTVIvAeufHgErdor3JeZk1Tpb
jy+6s5xOH5Qfx6Zvw41yHUnTyId5VcVfJzsJ6Gzc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=
X-HELO: esa2.ucsf.iphmx.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsfonline.onmicrosoft.com; s=selector1-ucsf-edu; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zuOoh9dG+7TL7pnjqBepBpNAlDwMwS7NINq5cHepWnI=; b=luQbxsjKiWAVeM0DFFcoA4QlcRvMi5+7zxKu8ibGOrqpDzqHx/yCWhqsfIPJ3sHPU/piLK1petTSrCRl8ddCJpEscGVow/e9DJd6noKDyhR1FJZDlaaWACQmHjJrppFsefq4tZIwZ8Ez3n04FiUSRHLs9vpiLwAyuYx/usNXSMw=
From: "Boylan, Ross" <Ross DOT Boylan AT ucsf DOT edu>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: ssh confused about home directory?
Date: Tue, 19 Feb 2019 19:24:38 +0000
Message-ID: <BYAPR05MB57363758E750164C12212C0F877C0@BYAPR05MB5736.namprd05.prod.outlook.com>
References: <BYAPR05MB573676B0D2BDCB42E8514BC4877C0 AT BYAPR05MB5736 DOT namprd05 DOT prod DOT outlook DOT com>
In-Reply-To: <BYAPR05MB573676B0D2BDCB42E8514BC4877C0@BYAPR05MB5736.namprd05.prod.outlook.com>
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Ross DOT Boylan AT ucsf DOT edu;
x-ms-exchange-purlcount: 1
received-spf: None (protection.outlook.com: ucsf.edu does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x1JJPcBv010287

[Answering my own question after better searching]
Same question asked and answered in the thread starting https://cygwin.com/ml/cygwin/2016-06/msg00400.html.
The answer is to set db_home in nsswitch.conf.

Comment: the current behavior strikes me as unfortunate and surprising.

________________________________________
From: Boylan, Ross
Sent: Tuesday, February 19, 2019 11:15:47 AM
To: cygwin AT cygwin DOT com
Subject: ssh confused about home directory?

I recently installed cygwin on Win 10, both 64 bit.
When I run ssh in a cygwin shell it complains
             Could not create directory '/home/rdboylan/.ssh'.
The /home directory is empty--that is, it has no rdboylan subdirectory.
My home directory appears to be /cygdrive/c/Users/rdboylan; that is the value of $HOME and where I end up when I do cd.
As far as I can tell from the docs, having c:/Users/rdboylan as home is fine, but ssh doesn't seem to be respecting it.

/etc/nsswitch.conf has no uncommented lines and /etc/passwd does not exist (both being ways to define the home directory on cygwin according to the internet).

In a Windows Command Prompt %HOME% is C:\Users\rdboylan

What's the most appropriate way to fix this problem?

Thanks.
Ross

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019