From d001e4a02bee25eaea7ed58f0c1610cb95f831ae Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Mon, 25 Aug 2025 20:59:55 +0200 Subject: [PATCH] man/chsh: deduplicate shells text Restructure the paragraphs to avoid duplication of text inside multiple conditions, making maintenance easier and avoiding accidental duplication in the rendered output. Signed-off-by: Georg Pfuetzenreuter --- man/chsh.1.xml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/man/chsh.1.xml b/man/chsh.1.xml index 5ed200da1..5379c0ae6 100644 --- a/man/chsh.1.xml +++ b/man/chsh.1.xml @@ -115,26 +115,22 @@ NOTE - + The only restriction placed on the login shell is that the command - name must be listed in /etc/shells, unless the - invoker is the superuser, and then any value may be added. An - account with a restricted login shell may not change her login shell. + name must be listed in /etc/shells. - The only restriction placed on the login shell is that the command - name must be listed in /etc/shells. If this file does not exist, the definitions are taken from the files %vendordir%/shells, %vendordir%/shells.d/* and /etc/shells.d/* in that order. If /etc/shells.d/@filename@ exists, then %vendordir%/shells.d/@filename@ will not be used. + + If the invoker is the superuser any value may be added regardless what is defined in the configuration files. An account with a restricted login shell may not change her login shell. - - For this reason, placing /bin/rsh in /etc/shells is discouraged since accidentally changing to a restricted shell would prevent the user from ever -- 2.47.3