1833496 Members
2750 Online
110052 Solutions
New Discussion

Wall Command

 
Yap Yen Nee
Contributor

Wall Command

Do I need to be a root equivalent in order for me to use the wall command to send message to all user?
Why when I send a "wall" message to a group of user, nothing appear on the user's screen although they are logged in?
5 REPLIES 5
Sergejs Svitnevs
Honored Contributor

Re: Wall Command

man wall:

"Non-root users can also use wall, but they are not guaranteed to have write permission for the target ttys. If the user issuing wall does not have write permission for the tty, that tty will be skipped and wall will continue delivering the message to the remaining ttys."

Regards,
Sergejs
Mark Grant
Honored Contributor

Re: Wall Command

I think the "mesg" command can affect "wall" too. If so, you could set "mesg y" in /etc/profile so everybody can receive messages.
Never preceed any demonstration with anything more predictive than "watch this"
Artyom Voronchihin
Respected Contributor

Re: Wall Command

Hello !
man wall:
The sender must have appropriate privileges to override any protections the users may have invoked (see mesg(1)).
By default mesg is n for each user.
"Intel inside" is not a label, it's a warning.
aparna challagulla
Valued Contributor

Re: Wall Command

hi,

the users should enable mesg for ur wall command to work
type mesg to know whether messages are enabled or not
use mesg -y to allow messages without restrictions
else mesg -g to allow messages using commands like write, wall ...

HTH
aparna
If you don't have time to do it right you must have time to do it over
Bruno Ganino
Honored Contributor

Re: Wall Command

"wall" command is right, but the sender must be the superuser to override any protections the users may invoked.
You can use "su" command before! (su allows one to become another user without loggin off, the default user name is root).

See also
... "write" command, copies lines from your terminal to that of another user.

... "mesg" command (exit status is 0=message receivable 1=not receivable, 2=error).

Bruno
Torino (Turin) +2H