I recently installed Cygwin. Its default home directory is
/cygdrive/c/Users/<username>/AppData/Roaming/SPB_Data
[Editor's note: this also applies when the directory is /cygdrive/c/SPB_Data
.]
I have tried changing the db_home
setting in /etc/nsswitch.conf according to this post, but that doesn't make any difference.
How do I change the home directory to /cygdrive/c/Cygwin64/home
?
see
https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch
and set on
/etc/nsswitch.conf
Don't use notepad as it will set the line end to windows default CRLF
After changing the file, close all cygwin processes, as its value is read at cygwin start.