$ cd $HOME
$ cat /etc/nsswitch.conf
passwd: files db
group: files db
db_enum: cache builtin
db_home: windows cygwin desc
db_shell: windows cygwin desc
db_gecos: windows cygwin ...
I am using Msys2, from PortableApps (I think this is not relevant), with the terminal launched via two possible cases (referred to below): (1) directly from the PortablApps launcher, (2) ConEmu.
I am using Msys2 from PortableApps under Win 10.
The answer to this question (i.e., identification and solution of the problem) may be related to the Unix/Linux part of usage, or to its "adaptation" ...
I have separate MSYS2 32-bit and 64-bit installed on a Windows 8.1 test machine. MSYS2 was acquired from the MinGW-64 download page. Each installation has developer tools installed like GCC, Git, GDB, ...