Использование библиотеки NSSWITCH

# getent passwd
# getent passwd root

# getent group

# getent hosts

# getent services

# cat /etc/nsswitch.conf
...
group:  files systemd nis
passwd: files systemd nis
shadow: files nis
...
debian11# service nscd restart && service nscd reload