From: Georg Pfuetzenreuter Date: Mon, 25 Aug 2025 18:59:55 +0000 (+0200) Subject: man/chsh: deduplicate shells text X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d001e4a02bee25eaea7ed58f0c1610cb95f831ae;p=thirdparty%2Fshadow.git 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 --- 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