From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47675 invoked by alias); 17 Apr 2015 16:07:57 -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 47660 invoked by uid 89); 17 Apr 2015 16:07:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_50,KAM_INFOUSMEBIZ,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: alum-mailsec-scanner-3.mit.edu Received: from alum-mailsec-scanner-3.mit.edu (HELO alum-mailsec-scanner-3.mit.edu) (18.7.68.14) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 Apr 2015 16:07:55 +0000 Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33]) by alum-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP id 82.C0.03139.9DF21355; Fri, 17 Apr 2015 12:07:54 -0400 (EDT) Received: from mail-ig0-f174.google.com (mail-ig0-f174.google.com [209.85.213.174]) (authenticated bits=0) (User authenticated as jjreisert@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id t3HG7rja032241 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 17 Apr 2015 12:07:53 -0400 Received: by iget9 with SMTP id t9so28277007ige.1 for ; Fri, 17 Apr 2015 09:07:52 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.42.226.69 with SMTP id iv5mr4361151icb.58.1429286872993; Fri, 17 Apr 2015 09:07:52 -0700 (PDT) Received: by 10.36.19.77 with HTTP; Fri, 17 Apr 2015 09:07:52 -0700 (PDT) Date: Fri, 17 Apr 2015 16:07:00 -0000 Message-ID: Subject: NTSEC db_home From: Jim Reisert AD1C To: cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00411.txt.bz2 I'm having a little trouble with the db_home: setting at work (corporate network, not using /etc/passwd or /etc/group). Regarding: https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch-home I tried "db_home: /%H" and although my MINTTY session started in the correct directory, ssh-keygen wanted to use the directory defined by HOMESHARE instead, which points somewhere else (a local Unix server). Note that both HOMEDRIVE (+HOMEPATH) and HOMESHARE ultimately point to the same place: DOS view of the world: c:\>set | grep HOME HOME=C:\Home HOMEDRIVE=P: HOMEPATH=\ HOMESHARE=\\corp.ad.broadcom.com\DENA\home\reisert (mintty window with bash) [LTDENA-REISERT:~] $ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (//corp.ad.broadcom.com/DENA/home/reisert/.ssh/id_rsa): Cygwin view of the world: [LTDENA-REISERT:~] $ set | grep -i home CDPATH=.:/cygdrive/c/Home:/cygdrive/c/Home/dx4win:/cygdrive/c HISTFILE=/cygdrive/c/Home/.bash_history HOME=/cygdrive/c/Home HOMEDRIVE=P: HOMEPATH='\' HOMESHARE='\\corp.ad.broadcom.com\DENA\home\reisert' PWD=/cygdrive/c/Home I can't explain what's going on. I changed db_home to: db_home: /cygdrive/C/Home and it's working as expected. -- Jim Reisert AD1C, , http://www.ad1c.us -- 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