[PATCH 2/2] docs: Document authselect to enable the NSS module

Andrea Bolognani posted 2 patches 2 months ago
[PATCH 2/2] docs: Document authselect to enable the NSS module
Posted by Andrea Bolognani 2 months ago
When using recent Fedora and RHEL versions, the manual setup that
is otherwise necessary to enable the module can be replaced with
executing a single command.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
---
 docs/nss.rst | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/docs/nss.rst b/docs/nss.rst
index eeb48ea1f2..43ee710cc0 100644
--- a/docs/nss.rst
+++ b/docs/nss.rst
@@ -36,8 +36,15 @@ of installing it will be similar.
 Configuration
 -------------
 
-To enable the module, modify ``/etc/nsswitch.conf`` so that the ``hosts`` line
-looks similar to
+If you're running a new enough version of Fedora (>= 37) or RHEL (>= 10), then
+you can use ``authselect`` to enable the module with a single command:
+
+::
+
+   # authselect enable-feature with-libvirt
+
+For other distributions, you will have to manually update the configuration in
+``/etc/nsswitch.conf`` so that the ``hosts`` line looks similar to
 
 ::
 
-- 
2.47.0