你如何阻止unix/linux wall消息?
Example:
SSH somemachine
WALL annoy the s*** out of people on machine
Run Code Online (Sandbox Code Playgroud)
期望的目标:在拥有的机器上拒绝墙壁
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)).
Run Code Online (Sandbox Code Playgroud)
编辑:
这不会阻止root发送墙消息
请注意,计算机上每个不想看到消息的用户都wall必须这样做mesg n。放入可能mesg n会/etc/profile为所有用户做到这一点。
或者,如果您只想root运行wall,请更改其权限:chmod 700 /usr/bin/wall。