www.delorie.com/archives/browse.cgi | search |
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:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=m2CPx68IT4Ojnc9gZoXD1VXsbfX9IP3OPJtuwcSt585iRm3gH6YSY | |
Ind11mcnw8dIT7YmSFVqXsmY1n1NH9+UKpKjFf4q3QEvO5eQlpasdiIgu826M9/d | |
V+aG77UcYS+cIInxvM+HiVS/uavRgMXf7F43xmR8xq859NbVfg3CHw= | |
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:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=wfVzGnTs1K4yje9K6SO6dhm4kT4=; b=hbfsa7ANm8nAV9iyyJbngbPoIBS+ | |
TIDUMqqLh2n/okZ4nJJFA9yJHyYREZXgwlfhuBGbTAoSg6/88wU2zgd3AeQ/8IMS | |
RjKSK7oR5KOUWNGmfPgqEHnn4aOenouwNk2Nl1sQLjaOfbnvI9wAN9S7REiRna0N | |
in+hMObk/EbOIyE= | |
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-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 |
Date: | Wed, 22 Jul 2015 18:57:30 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: db_home setting in nsswitch.conf is ignored. |
Message-ID: | <20150722165730.GN3864@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <1712666297 DOT 441220 DOT 1437579197236 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <1712666297.441220.1437579197236.JavaMail.yahoo@mail.yahoo.com> |
User-Agent: | Mutt/1.5.23 (2014-03-12) |
--XyBMaHrM0hrbbr/O Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 -----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--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |