From: Mario Blättermann Date: Mon, 14 Feb 2022 17:23:10 +0000 (+0100) Subject: Fix markup in su.1.adoc X-Git-Tag: v2.38-rc2~18^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=462fd302906af00f6ef19c9f49eb773be3f76deb;p=thirdparty%2Futil-linux.git Fix markup in su.1.adoc Small, but important mistake in asciidoc formatting, would lead to a scrambled paragraph. --- diff --git a/login-utils/su.1.adoc b/login-utils/su.1.adoc index 3746b257bc..36a892fab5 100644 --- a/login-utils/su.1.adoc +++ b/login-utils/su.1.adoc @@ -57,7 +57,7 @@ Start the shell as a login shell with an environment similar to a real login: Preserve the entire environment, i.e., do not set *HOME*, *SHELL*, *USER* or *LOGNAME*. This option is ignored if the option *--login* is specified. *-P*, *--pty*:: -Create a pseudo-terminal for the session. The independent terminal provides better security as the user does not share a terminal with the original session. This can be used to avoid *TIOCSTI* ioctl terminal injection and other security attacks against terminal file descriptors. The entire session can also be moved to the background (e.g., *su --pty **-** __username__ *-c* _application_ *&*). If the pseudo-terminal is enabled, then *su* works as a proxy between the sessions (sync stdin and stdout). +Create a pseudo-terminal for the session. The independent terminal provides better security as the user does not share a terminal with the original session. This can be used to avoid *TIOCSTI* ioctl terminal injection and other security attacks against terminal file descriptors. The entire session can also be moved to the background (e.g., *su --pty* **-** __username__ *-c* _application_ *&*). If the pseudo-terminal is enabled, then *su* works as a proxy between the sessions (sync stdin and stdout). + 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.