NSS-SYSTEMD(8)                   nss-systemd                  NSS-SYSTEMD(8)

NAME         top

       nss-systemd, - Provide UNIX user and group name
       resolution for dynamic users and groups.

SYNOPSIS         top

DESCRIPTION         top

       nss-systemd is a plug-in module for the GNU Name Service Switch (NSS)
       functionality of the GNU C Library (glibc), providing UNIX user and
       group name resolution for dynamic users and groups allocated through
       the DynamicUser= option in systemd unit files. See systemd.exec(5)
       for details on this option.

       This module also ensures that the root and nobody users and groups
       (i.e. the users/groups with the UIDs/GIDs 0 and 65534) remain
       resolvable at all times, even if they aren't listed in /etc/passwd or
       /etc/group, or if these files are missing.

       To activate the NSS module, add "systemd" to the lines starting with
       "passwd:" and "group:" in /etc/nsswitch.conf.

       It is recommended to place "systemd" after the "files" or "compat"
       entry of the /etc/nsswitch.conf lines so that /etc/passwd and
       /etc/group based mappings take precedence.

EXAMPLE         top

       Here is an example /etc/nsswitch.conf file that enables nss-systemd

           passwd:         compat mymachines systemd
           group:          compat mymachines systemd
           shadow:         compat

           hosts:          files mymachines resolve [!UNAVAIL=return] dns myhostname
           networks:       files

           protocols:      db files
           services:       db files
           ethers:         db files
           rpc:            db files

           netgroup:       nis

SEE ALSO         top

       systemd(1), systemd.exec(5), nss-resolve(8), nss-myhostname(8),
       nss-mymachines(8), nsswitch.conf(5), getent(1)

COLOPHON         top

       This page is part of the systemd (systemd system and service manager)
       project.  Information about the project can be found at 
       ⟨⟩.  If you have a bug
       report for this manual page, see
       ⟨⟩.  This
       page was obtained from the project's upstream Git repository
       ⟨⟩ on 2019-11-19.  (At that
       time, the date of the most recent commit that was found in the repos‐
       itory was 2019-11-19.)  If you discover any rendering problems in
       this HTML version of the page, or you believe there is a better or
       more up-to-date source for the page, or you have corrections or
       improvements to the information in this COLOPHON (which is not part
       of the original manual page), send a mail to

systemd 234                                                   NSS-SYSTEMD(8)

Pages that refer to this page: systemd.exec(5)systemd.directives(7)systemd.index(7)nss-myhostname(8)nss-mymachines(8)nss-resolve(8)