Score:0

mesg y command not working

jp flag

Despite using mesg y, the ? next to both the username is not changing to + because of which I'm not able to use write/wall command

shaunx333@Aspire:~$ who -w
tempuser ? :0           2021-06-25 13:27 (:0)
shaunx333 ? :1           2021-06-25 13:27 (:1)

Is there any way to change it to + ?

`

Whois_me avatar
us flag
Can you please edit the question so we can understand what you are asking?
uz flag
Jos
It is an interesting question, but needs to be fleshed out quite a bit to be understandble.
Score:3
uz flag
Jos

The phenomenon that is hinted at in the question is the following. Users on a multiuser Linux system are able to write messages to each other using the write command. The message would show up on the console. Also, a root user would be able to send a message to all users at once using the wall command.

If you are busy, you may turn off these messages by entering the command mesg n, and turn them back on with mesg y. The default is y.

To show which users are logged on, and which are listening to messages, you can use the who -w command. It will show a + for users who allow messages to come through, and a - for those who don't. If the system can't determine what the mesg status of the user is, it will display a ?.

These days most of us will use a graphic environment and a terminal emulator, rather than a text console. A terminal emulator establishes what is called a "pseudo tty device". The who command (you can find its source by searching for the coreutils package) tries, but fails, to determine the mesg state of a pseudo tty device.

However, if you open a different console, e.g. by pressing Ctrl + Alt + F3, and login, the who -w command will display:

jos      + tty3         2021-06-25 10:52

This is a genuine tty device and not a pseudoterminal. Notice the + that indicates I'm prepared to read messages from my co-users on this console.

shaunx333 avatar
jp flag
Thank you so much for understanding my problem and sorry for not able to describe the problem clearly
uz flag
Jos
If you feel my answer to your question was helpful, please tick the box next to it.
Whois_me avatar
us flag
@shaunx333 And even now you can always edit the question for future use(rs)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.