From b3a4b049c4d4274890b94a0fa91dae0184d81fcc Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Tue, 12 Nov 2024 23:32:33 +0100 Subject: [PATCH] docs: Document authselect to enable the NSS module 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 Reviewed-by: Michal Privoznik --- docs/nss.rst | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/nss.rst b/docs/nss.rst index 093c40b419..be137d987b 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 ::