summaryrefslogtreecommitdiffstats
path: root/login-utils/su.1
diff options
context:
space:
mode:
authorKarel Zak2017-08-23 13:49:23 +0200
committerKarel Zak2017-09-18 11:49:11 +0200
commit6461eeecd7abba33bbad4b81df25ca999dbeaed2 (patch)
tree441469675bd3dd4e691e8dad7becc8112feeb323 /login-utils/su.1
parentsu: add PTY support (diff)
downloadkernel-qcow2-util-linux-6461eeecd7abba33bbad4b81df25ca999dbeaed2.tar.gz
kernel-qcow2-util-linux-6461eeecd7abba33bbad4b81df25ca999dbeaed2.tar.xz
kernel-qcow2-util-linux-6461eeecd7abba33bbad4b81df25ca999dbeaed2.zip
su: add more informartion to man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/su.1')
-rw-r--r--login-utils/su.113
1 files changed, 11 insertions, 2 deletions
diff --git a/login-utils/su.1 b/login-utils/su.1
index 4939be86b..31801c1da 100644
--- a/login-utils/su.1
+++ b/login-utils/su.1
@@ -107,7 +107,16 @@ nor
This option is ignored if the option \fB\-\-login\fR is specified.
.TP
.BR \-P , " \-\-pty"
-Create pseudo-terminal for the session.
+Create pseudo-terminal for the session. The independent terminal provides
+better security as user does not share terminal with the original
+session. This allow to avoid TIOCSTI ioctl terminal injection and another
+security attacks against terminal file descriptors. The all session is also
+possible to move to background (e.g. "su --pty - usename -c
+application &"). If the pseudo-terminal is enabled then su command works
+as a proxy between the sessions (copy stdin and stdout).
+
+This feature is EXPERIMENTAL for now and may be removed in the next releases.
+
.TP
.BR \-s , " \-\-shell" = \fIshell
Run the specified \fIshell\fR instead of the default. The shell to run is
@@ -262,7 +271,7 @@ session required pam_lastlog.so nowtmp
.SH HISTORY
This \fBsu\fR command was
derived from coreutils' \fBsu\fR, which was based on an implementation by
-David MacKenzie.
+David MacKenzie. The util-linux has been refactored by Karel Zak.
.SH AVAILABILITY
The su command is part of the util-linux package and is
available from