public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: db_home setting in nsswitch.conf is ignored.
Date: Wed, 22 Jul 2015 16:57:00 -0000	[thread overview]
Message-ID: <20150722165730.GN3864@calimero.vinschen.de> (raw)
In-Reply-To: <1712666297.441220.1437579197236.JavaMail.yahoo@mail.yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 1595 bytes --]

On Jul 22 15:33, Shaun Martin wrote:
> I'm trying to set the HOME directory of Cygwin to a local folder. My computer is on a network and the Windows HOME variable is being mapped to a network drive. I'm not able to change this. And for some reason, this causes the default HOME directory for my Cygwin terminal to be set as either "/cygdrive/c/Users/shaun/Desktop/SERVER/USERS5:USERS/SHAUN" if I'm using mintty or "/usr/bin/SERVER/USERS5:USERS/SHAUN" if I'm using PowerShell. 
> 
> 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 for db_home in nsswitch.conf:
> 
> db_home: /cygdrive/c/users/shaun/apps/cygwin/home/shaun 
> db_home: /%H/Apps/cygwin/home/shaun 
> db_home: unix /%H/Apps/cygwin/home/shaun 
> db_home: cygwin desc 
> db_home: cygwin /path /%H/Apps/cygwin/home/shaun
> 
> I asked about this on superuser.com, http://superuser.com/questions/942908/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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2015-07-22 16:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-22 15:36 Shaun Martin
2015-07-22 16:57 ` Corinna Vinschen [this message]
2015-07-22 19:28 Shaun Martin
2015-07-22 22:05 ` Andrey Repin
2015-07-23  8:57   ` Corinna Vinschen
2015-07-24 12:19     ` Buchbinder, Barry (NIH/NIAID) [E]
2015-07-24 16:05       ` Andrey Repin
2015-07-23 13:39 Shaun Martin

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=20150722165730.GN3864@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --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).