Home directory and Cygwin ------------------------- Author: Momchil Ivanov Date : 2017.10.30 Introduction ------------ This article contains notes on the home directory in Cygwin. /etc/nssswitch.conf ------------------- Some programs in Cygwin do not respect the $HOME environment variable and use /home/user as the home folder. One of these is ssh as of today. One can set the home directory for all users using the file /etc/nssswitch.conf. Insert db_home: /%H/AppData/Roaming in order to use the default Windows path. Here %H is mapped to the home folder of the Windows user. Other special symbols include %U which is the login name of the Windows user. For further information refer to Reference [1]. References ---------- 1: https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch-syntax