db_home setting in nsswitch.conf is ignored.

Shaun Martin squarefighter@yahoo.com
Wed Jul 22 15:36:00 GMT 2015

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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150722/6f006031/attachment.txt>
-------------- next part --------------
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

More information about the Cygwin mailing list