Sending message from one terminal user to another user

terminalttywrite

I have a user of name x in tty1 and y in tty2. Now x wants to write some message to y and vice-versa.
Now I typed in tty1 terminal write y tty2
It is showing

write:write:you have write permission turned off

write:y has messages disabled

Same thing is showing when y's sending message to x instead it is 'x' in the last line.
What should I do?

Best Answer

It seems that y has turned off messages.

In y's terminal, type:

$ mesg
is n

meaning y does not allow others to write to y's terminal. Then you should try:

$ mesg y

Note

This option y in above command is different with y user in your case.

From man mesg:

NAME
       mesg - control write access to your terminal

SYNOPSIS
       mesg [y|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)).

OPTIONS
       y      Allow write access to your terminal.

       n      Disallow write access to your terminal.

       If no option is given, mesg prints out the current access state of your terminal.
Related Question