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]

db_home setting in nsswitch.conf is ignored.

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.

Attachment: cygcheck.txt
Description: Text document

Problem reports:
Unsubscribe info:

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