This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: db_home setting in nsswitch.conf is ignored.

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,
>  , 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 Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgp6OTdmctvKb.pgp
Description: PGP signature

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]