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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=DDz1OBkfdO7DhmM7 bSIJaKp1K9WPeMBpCWnckOtrRquapvNuxBXKFKhfRkaIEiGoaEQKb0cWixLXaoCw zYWjbcggt3k4ppZzPDXINnVJZdBvhNGXR6yn4UhzsihdMAt08LW1qmK0Izka3PWo W7rP+tM+sZKF50v7GTeZL/FTHxY= 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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=GQvx9wTt9FCqcpq8H29Y88 NvL4g=; b=ql66+z2zOZB9vq15CRPNDtliPEN1NKqW4uMucCx7iWOfVVpVe+ulKr 3B7AQSVH0TR7Sm+9APcnPh00vVgsBzTOuvkaxJQUwxmtRNqbd56I+wraXDW9cqPU gXrwMGjGYPzvIq+A7tQfgS/U5dzmt2EZSLxxwPEUVj+aJyoLGmjcA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=smart, spending, operational, hearts X-HELO: forward102p.mail.yandex.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1550607601; bh=BhhwXSLY0CkLxsmbrFxx7V6H3Uc5fMFHxJLtXTQwfP8=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=FrstRdB+qQwM9cs+Vy3KxAHrSE30+bLm2Gs5je79ukv/7FrZK9KWWK7ELnK1MtPm7 xUbJMr2l7dAxIFdwwUGb2/adgpE7P6rCdy46Hx84KZ8sjdlOs4H8oOKFey5IB39rXw kSZF1SUano44gDYxN0u+2MaTgq0Q8R2U3SFUwvCM= Authentication-Results: mxback4j.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Tue, 19 Feb 2019 23:08:38 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <414591698.20190219230838@yandex.ru> To: "Boylan, Ross" , cygwin AT cygwin DOT com Subject: Re: ssh confused about home directory? In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Boylan, Ross! > 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 This is the answer. You rely on your shell being smart enough to pick environment variable as operational directive, but SSH knows nothing about it and fails. > 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 Which explains the failure. > (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? Configure Cygwin's NSS to your heart's content. Speaking of which, if you move $HOME outside Cygwin root, I would strongly suggest spending some time in fstab, setting up cygdrive to noacl mode. F.e. none /cygdrive cygdrive noacl,binary,nouser,posix=0 0 0 -- With best regards, Andrey Repin Tuesday, February 19, 2019 23:04:19 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