summaryrefslogtreecommitdiffstats
path: root/login-utils
diff options
context:
space:
mode:
authorKarel Zak2019-03-06 13:12:23 +0100
committerKarel Zak2019-03-06 13:12:23 +0100
commit64a87be1a4a899ee43b0960a669046e127cf46fa (patch)
tree72d488d5f9eeae675da35e2a5555a6ad4e7a8b7f /login-utils
parentsu: be sensitive to another SIGCHLD ssi_codes (diff)
downloadkernel-qcow2-util-linux-64a87be1a4a899ee43b0960a669046e127cf46fa.tar.gz
kernel-qcow2-util-linux-64a87be1a4a899ee43b0960a669046e127cf46fa.tar.xz
kernel-qcow2-util-linux-64a87be1a4a899ee43b0960a669046e127cf46fa.zip
su: add note about ECHO on --pty
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils')
-rw-r--r--login-utils/runuser.14
-rw-r--r--login-utils/su.14
2 files changed, 8 insertions, 0 deletions
diff --git a/login-utils/runuser.1 b/login-utils/runuser.1
index e6b9a8e6b..4eecd9c6a 100644
--- a/login-utils/runuser.1
+++ b/login-utils/runuser.1
@@ -109,6 +109,10 @@ security attacks against terminal file descriptors. The all session is also
possible to move to background (e.g. "runuser --pty -u username -- command &").
If the pseudo-terminal is enabled then runuser command works
as a proxy between the sessions (copy stdin and stdout).
+.sp
+This feature is mostly designed for interactive sessions. If the standard input
+is not a terminal, but for example pipe (e.g. echo "date" | runuser --pty -u user)
+than ECHO flag for the pseudo-terminal is disabled to avoid messy output.
.TP
.BR \-m , " \-p" , " \-\-preserve\-environment"
Preserve the entire environment, i.e. it does not set
diff --git a/login-utils/su.1 b/login-utils/su.1
index f2b8fac8a..c09cb1c13 100644
--- a/login-utils/su.1
+++ b/login-utils/su.1
@@ -115,6 +115,10 @@ security attacks against terminal file descriptors. The all session is also
possible to move to background (e.g. "su --pty - username -c
application &"). If the pseudo-terminal is enabled then su command works
as a proxy between the sessions (copy stdin and stdout).
+.sp
+This feature is mostly designed for interactive sessions. If the standard input
+is not a terminal, but for example pipe (e.g. echo "date" | su --pty) than ECHO
+flag for the pseudo-terminal is disabled to avoid messy output.
.TP
.BR \-s , " \-\-shell" = \fIshell
Run the specified \fIshell\fR instead of the default. The shell to run is