delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/17/12:08:14

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:mime-version:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=VhkEKtoG2EA3oTfLtA7VSC4lzcGJV
fP1Ze/4mgtxcfhQA8cIDP5Z1d8GVR18H25ALa6j/KG2VEjtz87dflqVTjvTVUOJ6
lvJ7qNSRz0nSJysTekY4LWdf7Z/lSU5ebbu801UEBvJoVWKjLFLXlEPRbN013RSO
tu5UbJYgpIajw0=
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:mime-version:date:message-id:subject:from:to
:content-type; s=default; bh=8SIMHldG9MvVh6Sja4zzi3cSV1I=; b=HvD
vIje04ZGr0Vejmn+lAfrbDzBfkON8csec+gFCCaBHePW1X57HL1BwspM08aTxlgd
bQ8384J5jjzjTu6psfTUYI4v5Wr3SAYbWssu2aXQ/7hRFi3ExkzWViJfev95wHfQ
iQViG5FtcXiAwpii5/xXxqfDgpdzmHeFeUZ0VeDY=
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=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
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)
Date: Fri, 17 Apr 2015 10:07:52 -0600
Message-ID: <CAK-n8j6mahSQtjO+Qok-4iP+bL3=L2ikdgiZywMP4VK8DXcYpQ@mail.gmail.com>
Subject: NTSEC db_home
From: Jim Reisert AD1C <jjreisert AT alum DOT mit DOT edu>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

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, <jjreisert AT alum DOT mit DOT edu>, 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019