From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 68063 invoked by alias); 22 Jul 2015 16:57:35 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 67442 invoked by uid 89); 22 Jul 2015 16:57:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 22 Jul 2015 16:57:33 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id C1DA5A807DB; Wed, 22 Jul 2015 18:57:30 +0200 (CEST) Date: Wed, 22 Jul 2015 16:57:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: db_home setting in nsswitch.conf is ignored. Message-ID: <20150722165730.GN3864@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <1712666297.441220.1437579197236.JavaMail.yahoo@mail.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="XyBMaHrM0hrbbr/O" Content-Disposition: inline In-Reply-To: <1712666297.441220.1437579197236.JavaMail.yahoo@mail.yahoo.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-07/txt/msg00346.txt.bz2 --XyBMaHrM0hrbbr/O Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1601 On Jul 22 15:33, Shaun Martin wrote: > I'm trying to set the HOME directory of Cygwin to a local folder. My comp= uter is on a network and the Windows HOME variable is being mapped to a net= work drive. I'm not able to change this. And for some reason, this causes t= he default HOME directory for my Cygwin terminal to be set as either "/cygd= rive/c/Users/shaun/Desktop/SERVER/USERS5:USERS/SHAUN" if I'm using mintty o= r "/usr/bin/SERVER/USERS5:USERS/SHAUN" if I'm using PowerShell.=20 >=20 > I tried changing the /etc/nsswitch.conf, but any value I put into db_home= does not seem to do anything. I was able to test that "db_shell: /bin/sh" = did change my shell from bash to sh. Here are some of the values I tried fo= r db_home in nsswitch.conf: >=20 > db_home: /cygdrive/c/users/shaun/apps/cygwin/home/shaun=20 > db_home: /%H/Apps/cygwin/home/shaun=20 > db_home: unix /%H/Apps/cygwin/home/shaun=20 > db_home: cygwin desc=20 > db_home: cygwin /path /%H/Apps/cygwin/home/shaun >=20 > I asked about this on superuser.com, http://superuser.com/questions/94290= 8/changing-the-home-for-cygwin > , which pointed me here. Is HOME set in the Windows environment already? If so, this might interact with the setting in /etc/nsswitch.conf, which *only* works for entries taken from the passwd DB (getpwnam, getpwuid calls). How do you start mintty? It should be started with a single parameter, a dash, e.g.: C:\cygwin64\bin\mintty.exe - Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --XyBMaHrM0hrbbr/O Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVr8t6AAoJEPU2Bp2uRE+gjEIP+wQgUQnRd7roTfOWgabJJZzy zqw1gFDXhJ4VbR2yAnD53/DchOum2jSN1cfnVKRg0AmfnICUJ/rO/hAeCYU7ehcP cjzK/PFgB8G5y8fOecYj1kl3rBo7CqKqtvHg6yK8cUmR2116t7ZOi6P30uidvpmx UD6UnpXz9YpqINY6VUMP7dQl0O/XSLF3X86LEffkFGh2WFtYeqHCYTnLIBFYGxNH Ml1Ku9r9sYJZ5lCD0smglaEU5SrB8JxDWgejqQ01GiC6PtgSi3qmoY6kH+1ZsuGD 9afu3Q+FydUBYUBp9UY8DfuV1nHI8wnM7p3lTgCo5WXJF2qLPvecrLrHOFDT4cOc KFohR7EanOje3H9jiNOKjUcPmq2f3d4OY0z8SLbT1VttiSZiZITWo8sjwl+wAflz iN4MDboaJCMXC0S1xEGhwrdRh7nJJzFjzAnmfJwQyZXI2Lgck4C8E2J/9sII9PHr MWJ+1MvloUDWyA5co5ITkc6CBrSbNmVH6p770dJ7W5OcYTb4wxjvo/00Da/l6F4A /V0SQpiOdWi08bcv/+zmizo5yBMqobSeRgYod2fIaKg/p+oM5FmNODopJqWQMtuI fJLisJLIXOPBgz7gSoVFJDEtjag4EVYFgllcnecFAxxnMb7JV/1kV26JeVQz2byY PO7kpXVtnbpifbxR4ljE =9B3r -----END PGP SIGNATURE----- --XyBMaHrM0hrbbr/O--