summaryrefslogtreecommitdiffstats
path: root/usr.sbin/watch/watch.8
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-12-02 12:32:46 +0000
committerjkh <jkh@FreeBSD.org>1996-12-02 12:32:46 +0000
commit19c8e3590eb69c931d661625dda16fd1bb866bb4 (patch)
tree2769f1f2499acbaaaa6160ff2885bc2931baf237 /usr.sbin/watch/watch.8
parent239b648336e79fe1eb04148a10085de8b7628161 (diff)
downloadFreeBSD-src-19c8e3590eb69c931d661625dda16fd1bb866bb4.zip
FreeBSD-src-19c8e3590eb69c931d661625dda16fd1bb866bb4.tar.gz
I have added a '-n' flag to the watch(8) command. This option
disables the ability to interactively select a new tty. I have also removed a check for uid == 0 because it gets in the way of using suid mode based access control. Watch (8)is only runnable by root, so this does not really change things much. Closes PR#2131 Submitted-By: adrian@virginia.edu
Diffstat (limited to 'usr.sbin/watch/watch.8')
-rw-r--r--usr.sbin/watch/watch.88
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/watch/watch.8 b/usr.sbin/watch/watch.8
index 50bd5b8..f2f9ed8 100644
--- a/usr.sbin/watch/watch.8
+++ b/usr.sbin/watch/watch.8
@@ -11,7 +11,7 @@
.Nm watch
.Op Fl ciotW
.Ar tty
-.\" watch [-ciotW] [<tty name>]
+.\" watch [-ciotnW] [<tty name>]
.Sh DESCRIPTION
.Nm Watch
allows the superuser to examine all data coming through a specified tty.
@@ -45,6 +45,12 @@ For more info see
.Xr snp 4 .
.It Fl t
Print the date and time when observation of a given tty is started.
+.It Fl n
+Disable the ability to switch the watched tty interactively. This disables
+both change requests made with <control-X> as well as automatic prompting
+when the current tty is closed or overflows. In all cases where a prompt
+would be displayed, watch will exit. The reconnect flags are unaffected by
+this option.
.It Fl W
Allow write access to observed tty.
.It Ar tty
OpenPOWER on IntegriCloud