Unix培训:Unix如何阻止 unix/linux的“墙”消息

如何阻止 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

本站系公益性非盈利分享网址,本文来自用户投稿,不代表边看边学立场,如若转载,请注明出处

(747)
Linux系统开机:开机自检(power self test)
上一篇
Linux自动补全命令:如何自动化一些 linux命令(linux automated tasks)
下一篇

相关推荐

发表评论

登录 后才能评论

评论列表(45条)