]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
su: (man) improve formatting
authorKarel Zak <kzak@redhat.com>
Thu, 1 Feb 2024 10:55:36 +0000 (11:55 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 1 Feb 2024 10:55:36 +0000 (11:55 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/su.1.adoc

index 8ae6b6ca6ece10f5ce3c696f55de43ae267cde5d..2db2e04c5870652e9f6063b6f2f18bf6b12e5add 100644 (file)
@@ -69,15 +69,15 @@ Create a pseudo-terminal for the session. The independent terminal provides bett
 This feature is mostly designed for interactive sessions. If the standard input is not a terminal, but for example a pipe (e.g., *echo "date" | su --pty*), then the *ECHO* flag for the pseudo-terminal is disabled to avoid messy output.
 
 *-s*, **--shell**=__shell__::
-Run the specified _shell_ instead of the default. The shell to run is selected according to the following rules, in order:
-
+Run the specified _shell_ instead of the default. If the target user has a restricted shell (i.e., not listed in _/etc/shells_), the *--shell* option and the *SHELL* environment variables are ignored unless the calling user is root.
++
+The shell to run is selected according to the following rules, in order:
++
 * the shell specified with *--shell*
 * the shell specified in the environment variable *SHELL*, if the *--preserve-environment* option is used
 * the shell listed in the passwd entry of the target user
 * /bin/sh
 
-If the target user has a restricted shell (i.e., not listed in _/etc/shells_), the *--shell* option and the *SHELL* environment variables are ignored unless the calling user is root.
-
 **--session-command=**__command__::
 Same as *-c*, but do not create a new session. (Discouraged.)