• Uncategorized

About linux : Unix-how-do-you-block-unixlinux-wall-messaging

Question Detail

How do you block unix/linux wall messaging?

SSH somemachine
WALL annoy the s*** out of people on machine

Desired goal: deny wall on owned machine

Question Answer

mesg n

From the man page

   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)).


This will not prevent root from sending wall messages

Note that every user on the machine that does not want to see a wall message has to do mesg n. Putting mesg n in /etc/profile might do that for all users.

Alternatively, if you only want root to be able to run wall, change its permission: chmod 700 /usr/bin/wall.

You may also like...

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.