diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-05-05 16:11:26 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-05-08 14:35:28 +0200 |
commit | f43a19ecd6e3415ec223f245204b4eaaff739af4 (patch) | |
tree | 81745ffa658dd9ec54081488c7e090c65f1702a4 /man/nss-systemd.xml | |
parent | 09001dbdc88f447656d79822bbff9c6d7ed7e5cf (diff) | |
download | systemd-f43a19ecd6e3415ec223f245204b4eaaff739af4.tar.gz |
nss-systemd: synthesize NSS shadow/gshadow records from userdb, as well
This ensures we not only synthesize regular paswd/group records of
userdb records, but shadow records as well. This should make sure that
userdb can be used as comprehensive superset of the classic
passwd/group/shadow/gshadow functionality.
Diffstat (limited to 'man/nss-systemd.xml')
-rw-r--r-- | man/nss-systemd.xml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/man/nss-systemd.xml b/man/nss-systemd.xml index 1fee8cc8ba..d42a866b0f 100644 --- a/man/nss-systemd.xml +++ b/man/nss-systemd.xml @@ -47,11 +47,13 @@ for resolving users and groups, but also works without the service running.</para> <para>To activate the NSS module, add <literal>systemd</literal> to the lines starting with - <literal>passwd:</literal> and <literal>group:</literal> in <filename>/etc/nsswitch.conf</filename>.</para> + <literal>passwd:</literal>, <literal>group:</literal>, <literal>shadow:</literal> and + <literal>gshadow:</literal> in <filename>/etc/nsswitch.conf</filename>.</para> <para>It is recommended to place <literal>systemd</literal> after the <literal>files</literal> or <literal>compat</literal> entry of the <filename>/etc/nsswitch.conf</filename> lines so that - <filename>/etc/passwd</filename> and <filename>/etc/group</filename> based mappings take precedence.</para> + <filename>/etc/passwd</filename>, <filename>/etc/group</filename>, <filename>/etc/shadow</filename> and + <filename>/etc/gshadow</filename> based mappings take precedence.</para> </refsect1> <refsect1> @@ -63,7 +65,8 @@ <!-- synchronize with other nss-* man pages and factory/etc/nsswitch.conf --> <programlisting>passwd: compat <command>systemd</command> group: compat [SUCCESS=merge] <command>systemd</command> -shadow: compat +shadow: compat <command>systemd</command> +gshadow: files <command>systemd</command> hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns networks: files |