Project:Toolchain/Glibc 2.26 porting notes/nsswitch.conf in glibc-2.26

= TL;DR / the fix =

Make sure your /etc/nsswitch.conf contains files entry:

Good:

Also good:

Bad:

= What is broken =

If you have compat database only listed as a service resolver and install glibc-2.26 most of programs will fail to resolve users and groups: login, ssh and so on will fail.

One of many manifestations of the problem:

= Why the breakage =

Details can be seen at https://bugs.gentoo.org/627338

glibc-2.26 deprecates obsolete NSL libraries. (in this case libnss_compat.so.2 gone away)

Gentoo happened not to change nsswitch.conf since 2006.