Disable write

1020
To disable the write command for a user, add the following line in his .bashrc file:
mesg off
You can turn it back by using mesg on or by simply deleting the line from .bashrc.