From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73800 invoked by alias); 7 Feb 2018 18:15:57 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Received: (qmail 73658 invoked by uid 89); 7 Feb 2018 18:15:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=BAYES_50,GIT_PATCH_2,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS,TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=accomplish, Hx-spam-relays-external:0.0.0.0, H*RU:0.0.0.0, H*r:trex X-HELO: smtp65.ord1c.emailsrvr.com Received: from smtp65.ord1c.emailsrvr.com (HELO smtp65.ord1c.emailsrvr.com) (108.166.43.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Feb 2018 18:15:31 +0000 Received: from smtp17.relay.ord1c.emailsrvr.com (localhost [127.0.0.1]) by smtp17.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 0DCAB605C9 for ; Wed, 7 Feb 2018 13:15:25 -0500 (EST) Received: from smtp192.mex05.mlsrvr.com (unknown [184.106.31.85]) by smtp17.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTPS id E879760555 for ; Wed, 7 Feb 2018 13:15:24 -0500 (EST) X-Sender-Id: rossb@rossb.com Received: from smtp192.mex05.mlsrvr.com ([UNAVAILABLE]. [184.106.31.85]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:25 (trex/5.7.12); Wed, 07 Feb 2018 13:15:25 -0500 Received: from ORD2MBX05E.mex05.mlsrvr.com ([fe80::d47d:20ff:fe52:4153]) by ORD2HUB30.mex05.mlsrvr.com ([::1]) with mapi id 14.03.0279.002; Wed, 7 Feb 2018 12:15:24 -0600 From: Ross Boulet To: "cygwin-xfree@cygwin.com" Subject: RE: Problems with users home directory on cygwin64 on Windows 10 Date: Wed, 07 Feb 2018 18:15:00 -0000 Message-ID: References: In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2018-02/txt/msg00005.txt.bz2 > -----Original Message----- > From: cygwin-xfree-owner@cygwin.com [mailto:cygwin-xfree- > owner@cygwin.com] On Behalf Of Steinar Bang > Sent: Wednesday, February 07, 2018 9:07 AM > To: cygwin-xfree@cygwin.com > Subject: Problems with users home directory on cygwin64 on Windows 10 >=20 > Platform: Intel i7, Windows 10 Pro > Cygwin64 >=20 > I installed cygwin X yesterday (basically the xorg-server, xlaunch, lxter= minal, > openssh and mosh). SSH doesn't work in the resulting installation because > cygwin believes the home directory is /home/sb. >=20 > I have set HOME as an environment variable, that in cygwin looks like: > HOME=3D/cygdrive/d/Profiles/sb >=20 > getent reports the following: > sb@ITEM-S63383:~$ getent passwd sb > sb:*:1294839:1049089:U-AD-ONE\sb,S-1-5-21-2260904419-1400770398- > 4175912926-246263:/home/sb:/bin/bash > sb@ITEM-S63383:~$ >=20 > The user "sb" is an AD user and the computer belongs to an active domain. >=20 > I have tried the following: > 1. Adding the following line to the /etc/nsswitch.conf file (also known > as C:\cygwin64\etc\nsswitch.conf ): > db_home: windows > 2. Stopped all cygwin windows, but this didn't help 3. Changed the conf= ig to > db_home: /%H > 4. Stopped all cygwin windows, but the home directory was still > /home/sb > 5. Changed the /etc/nsswitch.conf file back to > db_home: windows > 5. Rebooted, but home directory was still /home/sb 6. Checked for > /etc/password and/or /etc/group, but no such file were > present >=20 > Any ideas? >=20 > Thanks! >=20 >=20 > - Steinar >=20 >=20 > -- [Ross Boulet]=20 Have you tried running mkpasswd? The man page for mkpasswd looks like it mi= ght accomplish what you want. Also, this mailing list is deprecated. Please see https://cygwin.com/ml/cyg= win-xfree-announce/2015-03/msg00001.html -Ross -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/