From 6eeef2c9bf15b2416352c695ab9bb807e1a41b45 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 1 Feb 2024 11:55:36 +0100 Subject: [PATCH] su: (man) improve formatting Signed-off-by: Karel Zak --- login-utils/su.1.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/login-utils/su.1.adoc b/login-utils/su.1.adoc index 8ae6b6ca6e..2db2e04c58 100644 --- a/login-utils/su.1.adoc +++ b/login-utils/su.1.adoc @@ -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.) -- 2.47.3