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:message-id:from:reply-to:to:subject :references:in-reply-to:content-type; q=dns; s=default; b=GI2I00 UvnHV54M1T0OUC/yPuhBEskVXq7tRPiO0ewnf3qxCjF1YFUF3b+bO28+eN4B0tCh Hrup8mIgHvl+ZlE/W6rRzpsuhkHIa9+nkRE0dgoRSN+Al2LTHbOva8vgBrp/A9AI R2Zbx/bAzmRlo7Ubd3sny5PEjcRBjfnrh2SFU= 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:message-id:from:reply-to:to:subject :references:in-reply-to:content-type; s=default; bh=StrY8CdOIR0a qVEndq+dtdpfrb0=; b=qxZOMx+8MgrvlY8o7ZFfIlWzbQ1h1ZtCazloXdf8QqyT vEmCEyBdljXeXL/s280gqxMj1CgAj/1GeJK05mEVyXHe/NDNcZTOB7LgPShPFtVN mBQn/IEFk1YIblTQzbPBbd4744yfMJeOXiejS/6KKn4ULaNYImJ+1j/IHoz+gMw= 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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=ntsechtml, cygwin-ug-net, cygwinugnet, UD:ntsec.html X-HELO: lb1-smtp-cloud8.xs4all.net Date: Wed, 20 Feb 2019 09:08:42 +0100 Message-ID: From: Houder Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: ssh confused about home directory? References: In-Reply-to: Content-Type: text/plain; charset=UTF-8; format=fixed User-Agent: mua.awk 0.99 On Tue, 19 Feb 2019 19:24:38, Boylan, Ross" wrote: > [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. Surprisng? .. and you have read? https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-passwdinfo where it reads: So, what settings can we perform with /etc/nsswitch.conf? Let's start with an example /etc/nsswitch.conf file set up to all default values: # /etc/nsswitch.conf passwd: files db group: files db db_enum: cache builtin db_home: /home/%U <========= db_shell: /bin/bash db_gecos: Perhaps you can infer this default from: https://cygwin.com/ where it reads: Cygwin - Get this __Linux__ feeling ... Henri -- 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