]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
su: add more informartion to man page
authorKarel Zak <kzak@redhat.com>
Wed, 23 Aug 2017 11:49:23 +0000 (13:49 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 18 Sep 2017 09:49:11 +0000 (11:49 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/su.1

index 4939be86bbdf0e76a3918b0d8c05a7743f3a3b6f..31801c1da05cbddc8d6498608b614601f56d7ebe 100644 (file)
@@ -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