如何阻止 unix / linuxwall
消息?
Example:
SSH somemachine
WALL annoy the s*** out of people on machine
期望的目标:拒绝拥有的机器上的墙
7
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)).
Edit:
这将不阻止root
发送墙消息
5
请注意,机器上每个不想看到wall
消息的用户都必须执行mesg n
。将mesg n
放入/etc/profile
可能会对所有用户执行此操作。
或者,如果您只希望root
能够运行wall
,请更改其权限:chmod 700 /usr/bin/wall
。
本站系公益性非盈利分享网址,本文来自用户投稿,不代表边看边学立场,如若转载,请注明出处
评论列表(45条)