如何阻止unix/linux wall消息传递?
Example:
SSH somemachine
WALL annoy the s*** out of people on machine预期目标:拒绝自有计算机上的墙
发布于 2012-03-21 03:33:40
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发送墙上的消息
发布于 2012-03-23 09:31:46
请注意,机器上不想看到wall消息的每个用户都必须执行mesg n。将mesg n放在/etc/profile中可能会对所有用户执行此操作。
或者,如果您只希望root能够运行wall,可以更改其权限:chmod 700 /usr/bin/wall。
https://stackoverflow.com/questions/9793601
复制相似问题