4

I received some messages here:

[root@localhost kvm]# 
Broadcast message from [email protected] (pts/1) (Thu Jun  6 08:04:26 2019):

hello

Broadcast message from [email protected] (pts/1) (Thu Jun  6 08:05:02 2019):

hello

How has this messagen been sent to me? And how can I reply to it?

1

2 Answers 2

4

Aside from the concerns that you host might be compromised, to broadcast a message to all users or users in a specific group, use wall

wall -g root "Hi there"
# Will send to all users in the root group
wall "hello, world"
# Will send to all logged in users

Also checkout mesg and talk.

1

This looks like a broadcast sent by someone logged in as root using the wall utility. You can use this same command to broadcast your own message. Eg:

wall "Hello back"

Or

wall << EOF
hello back
EOF

If you just want to respond to a single user without broadcasting to everyone on your system you can use write:

write root << EOF
hello back
EOF

Obviously the fact that this says from [email protected] infers that someone is logged in as root. If you know that nobody but you is supposed to be logged in as root then take action because it infers your machine has been compromised.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .