public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jim Reisert AD1C <jjreisert@alum.mit.edu>
To: cygwin@cygwin.com
Subject: NTSEC db_home
Date: Fri, 17 Apr 2015 16:07:00 -0000	[thread overview]
Message-ID: <CAK-n8j6mahSQtjO+Qok-4iP+bL3=L2ikdgiZywMP4VK8DXcYpQ@mail.gmail.com> (raw)

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@alum.mit.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

             reply	other threads:[~2015-04-17 16:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-17 16:07 Jim Reisert AD1C [this message]
2015-04-17 16:29 ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAK-n8j6mahSQtjO+Qok-4iP+bL3=L2ikdgiZywMP4VK8DXcYpQ@mail.gmail.com' \
    --to=jjreisert@alum.mit.edu \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).