171 lines
3.7 KiB
HTML
171 lines
3.7 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of MESG</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>MESG</H1>
|
|
Section: User Commands (1)<BR>Updated: July 2014<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
mesg - display (or do not display) messages from other users
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>mesg</B>
|
|
|
|
[option]
|
|
[<B>n</B>|<B>y</B>]
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
The
|
|
<B>mesg</B>
|
|
|
|
utility is invoked by a user to control write access others have to the
|
|
terminal device associated with standard error output. If write access
|
|
is allowed, then programs such as
|
|
<B><A HREF="/cgi-bin/man/man2html?1+talk">talk</A></B>(1)
|
|
|
|
and
|
|
<B><A HREF="/cgi-bin/man/man2html?1+write">write</A></B>(1)
|
|
|
|
may display messages on the terminal.
|
|
<P>
|
|
|
|
Traditionally, write access is allowed by default. However, as users
|
|
become more conscious of various security risks, there is a trend to remove
|
|
write access by default, at least for the primary login shell. To make
|
|
sure your ttys are set the way you want them to be set,
|
|
<B>mesg</B>
|
|
|
|
should be executed in your login scripts.
|
|
<P>
|
|
|
|
The
|
|
<B>mesg</B>
|
|
|
|
utility silently exits with error status 2 if not executed on terminal. In this
|
|
case execute
|
|
<B>mesg</B>
|
|
|
|
is pointless. The command line option <B>--verbose</B> forces
|
|
mesg to print a warning in this situation. This behaviour has been introduced
|
|
in version 2.33.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>ARGUMENTS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>n</B>
|
|
|
|
<DD>
|
|
Disallow messages.
|
|
<DT id="2"><B>y</B>
|
|
|
|
<DD>
|
|
Allow messages to be displayed.
|
|
</DL>
|
|
<P>
|
|
|
|
If no arguments are given,
|
|
<B>mesg</B>
|
|
|
|
shows the current message status on standard error output.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="3"><B>-v</B>,<B> --verbose</B>
|
|
|
|
<DD>
|
|
Explain what is being done.
|
|
<DT id="4"><B>-V</B>,<B> --version</B>
|
|
|
|
<DD>
|
|
Display version information and exit.
|
|
<DT id="5"><B>-h</B>,<B> --help</B>
|
|
|
|
<DD>
|
|
Display help text and exit.
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>EXIT STATUS</H2>
|
|
|
|
The
|
|
<B>mesg</B>
|
|
|
|
utility exits with one of the following values:
|
|
<DL COMPACT><DT id="6"><DD>
|
|
<DL COMPACT>
|
|
<DT id="7"><B> 0</B>
|
|
|
|
<DD>
|
|
Messages are allowed.
|
|
<DT id="8"><B> 1</B>
|
|
|
|
<DD>
|
|
Messages are not allowed.
|
|
<DT id="9"><B>>1</B>
|
|
|
|
<DD>
|
|
An error has occurred.
|
|
</DL>
|
|
</DL>
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<I>/dev/[pt]ty[pq]?</I>
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+login">login</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+talk">talk</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+write">write</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+wall">wall</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+xterm">xterm</A></B>(1)
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>HISTORY</H2>
|
|
|
|
A
|
|
<B>mesg</B>
|
|
|
|
command appeared in Version 6 AT&T UNIX.
|
|
<P>
|
|
<A NAME="lbAK"> </A>
|
|
<H2>AVAILABILITY</H2>
|
|
|
|
The mesg command is part of the util-linux package and is available from
|
|
<A HREF="https://www.kernel.org/pub/linux/utils/util-linux/.">https://www.kernel.org/pub/linux/utils/util-linux/.</A>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="10"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="11"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="12"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="13"><A HREF="#lbAE">ARGUMENTS</A><DD>
|
|
<DT id="14"><A HREF="#lbAF">OPTIONS</A><DD>
|
|
<DT id="15"><A HREF="#lbAG">EXIT STATUS</A><DD>
|
|
<DT id="16"><A HREF="#lbAH">FILES</A><DD>
|
|
<DT id="17"><A HREF="#lbAI">SEE ALSO</A><DD>
|
|
<DT id="18"><A HREF="#lbAJ">HISTORY</A><DD>
|
|
<DT id="19"><A HREF="#lbAK">AVAILABILITY</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:19 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|