Unix如何阻止Unix/linux“墙”消息传递?

Unix如何阻止Unix/linux“墙”消息传递?,linux,unix,Linux,Unix,如何阻止unix/linuxwall消息传递 Example: SSH somemachine WALL annoy the s*** out of people on machine 所需目标:拒绝拥有机器上的墙mesg n 从手册页 DESCRIPTION Mesg controls the access to your terminal by others. It's typically used to allow or disallow other users to writ

如何阻止unix/linux
wall
消息传递

Example: 
SSH somemachine
WALL annoy the s*** out of people on machine
所需目标:拒绝拥有机器上的墙

mesg n

从手册页

DESCRIPTION
   Mesg controls the access to your terminal by others.  It's typically used to allow or disallow other users to write to your terminal (see write(1)).
编辑:

这不会阻止
root
发送墙消息

mesg n

从手册页

DESCRIPTION
   Mesg controls the access to your terminal by others.  It's typically used to allow or disallow other users to write to your terminal (see write(1)).
编辑:

这不会阻止
root
发送墙消息

请注意,机器上不想看到
wall
消息的每个用户都必须执行
mesg n
。将
mesg n
放在
/etc/profile
中可能会对所有用户都这样做

或者,如果您只希望
root
能够运行
wall
,请更改其权限:
chmod 700/usr/bin/wall

请注意,机器上不想看到
wall
消息的每个用户都必须执行
mesg n
。将
mesg n
放在
/etc/profile
中可能会对所有用户都这样做



或者,如果您只希望
root
能够运行
wall
,请更改其权限:
chmod 700/usr/bin/wall

您可以简单地卸载该程序吗?或者删除上面的可执行标志?我不是所需机器的root用户。我正在寻找一种方法来抑制,如果没有别的办法,如果你不是机器的根,除了你自己,你将无法为任何人做任何事情。这就是你要问的吗?是的,我不希望其他人使用“墙”ssh进入机器并粘贴我的终端。这个问题与MySQL有什么关系?你能简单地卸载这个程序吗?或者删除上面的可执行标志?我不是所需机器的root用户。我正在寻找一种方法来抑制,如果没有别的办法,如果你不是机器的根,除了你自己,你将无法为任何人做任何事情。这就是你要问的吗?是的,我不希望其他人使用“墙”ssh进入机器并粘贴我的终端。这个问题与MySQL有什么关系?Alex-我不在乎root是否可以发送消息。只有其他用户应该为您做这件事。在bashrc中启动了吗?我相信是这样,
.bashrc.
.bash\u profile
.profile
都可以-我不在乎root是否可以发送消息。只有其他用户应该为您做这件事。在bashrc启动了吗?我相信是这样,
.bashrc.
.bash\u profile
.profile
就可以了