summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-05-05 16:11:26 +0200
committerLennart Poettering <lennart@poettering.net>2021-05-08 14:35:28 +0200
commitf43a19ecd6e3415ec223f245204b4eaaff739af4 (patch)
tree81745ffa658dd9ec54081488c7e090c65f1702a4 /man
parent09001dbdc88f447656d79822bbff9c6d7ed7e5cf (diff)
downloadsystemd-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')
-rw-r--r--man/nss-myhostname.xml4
-rw-r--r--man/nss-mymachines.xml3
-rw-r--r--man/nss-resolve.xml3
-rw-r--r--man/nss-systemd.xml9
4 files changed, 13 insertions, 6 deletions
diff --git a/man/nss-myhostname.xml b/man/nss-myhostname.xml
index 8a603fb9ce..98eb0ec77e 100644
--- a/man/nss-myhostname.xml
+++ b/man/nss-myhostname.xml
@@ -91,7 +91,9 @@
<!-- synchronize with other nss-* man pages and factory/etc/nsswitch.conf -->
<programlisting>passwd: compat systemd
group: compat [SUCCESS=merge] systemd
-shadow: compat
+shadow: compat systemd
+gshadow: files systemd
+
# Either (untrusted network, see above):
hosts: mymachines resolve [!UNAVAIL=return] files <command>myhostname</command> dns
diff --git a/man/nss-mymachines.xml b/man/nss-mymachines.xml
index b2785df410..03fcd4308e 100644
--- a/man/nss-mymachines.xml
+++ b/man/nss-mymachines.xml
@@ -57,7 +57,8 @@
<!-- synchronize with other nss-* man pages and factory/etc/nsswitch.conf -->
<programlisting>passwd: compat systemd
group: compat [SUCCESS=merge] systemd
-shadow: compat
+shadow: compat systemd
+gshadow: files systemd
hosts: <command>mymachines</command> resolve [!UNAVAIL=return] files myhostname dns
networks: files
diff --git a/man/nss-resolve.xml b/man/nss-resolve.xml
index 78c92030ac..97c3768100 100644
--- a/man/nss-resolve.xml
+++ b/man/nss-resolve.xml
@@ -63,7 +63,8 @@
<!-- synchronize with other nss-* man pages and factory/etc/nsswitch.conf -->
<programlisting>passwd: compat systemd
group: compat [SUCCESS=merge] systemd
-shadow: compat
+shadow: compat systemd
+gshadow: files systemd
hosts: mymachines <command>resolve [!UNAVAIL=return]</command> files myhostname dns
networks: files
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