Disable write

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