/etc/hosts entries not being used for non-root users
Issue Non-root users are unable to resolve addresses for entries in /etc/hosts. user@gentoo ~ $ ping localhost ping: unknown host localhost Troubleshooting Potential causes Malformed content or improper permissions on /etc/hosts Malformed content or improper permissions on /etc/host.conf Malformed content or improper permissions on /etc/nsswitch.conf Diagnostics One may consider nslookup or dig to be suitable diagnostic tools given the use case, however, they are applicable only when troubleshooting DNS server name resolution issues; these tools do not bother to look at /etc/hosts. »