LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-09-2022, 08:13 AM   #1
ssameera
LQ Newbie
 
Registered: Jun 2022
Distribution: Ubuntu, Fedora
Posts: 2

Rep: Reputation: 0
using wall command


Hello,

I tried using wall command. But the message was not broadcast on to other users' terminals.

Am i missing some other step here?

Thanks in advance.

Sameera
 
Old 06-09-2022, 08:30 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,710

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by ssameera View Post
Hello,
I tried using wall command. But the message was not broadcast on to other users' terminals. Am i missing some other step here?
You don't say what version/distro of Linux you're using, or what exactly you're typing in, but two things can be in play here. One is permissions...are you running this as root/sudo? And the other is that it only works on logged-in terminals, which it gets from utmp data.
 
Old 06-09-2022, 11:21 AM   #3
ssameera
LQ Newbie
 
Registered: Jun 2022
Distribution: Ubuntu, Fedora
Posts: 2

Original Poster
Rep: Reputation: 0
here are the details. Sorry missed it in earlier post

Host OS - Ubuntu 22.04. I am using virtual machine manager and have installed Centos 7 as the guest OS.

I have created 2 users in Centos. I am using wall command in the centos root. I checked mesg permissions on the 2 users. It says 'is y'.

When i run the wall command with some text, I am unable to see the same in the terminal of other two users.
 
Old 06-09-2022, 11:33 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,710

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by ssameera View Post
here are the details. Sorry missed it in earlier post
Host OS - Ubuntu 22.04. I am using virtual machine manager and have installed Centos 7 as the guest OS.

I have created 2 users in Centos. I am using wall command in the centos root. I checked mesg permissions on the 2 users. It says 'is y'. When i run the wall command with some text, I am unable to see the same in the terminal of other two users.
Ok...again, what exactly are you typing in?? Are you using su/sudo to do it?? Are they actually logged in when you're doing this? Are they logged in to the CentOS system, or the Ubuntu host???
 
Old 06-09-2022, 01:32 PM   #5
lvm_
Member
 
Registered: Jul 2020
Posts: 963

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Check permissions on wall, they should be -rwxr-sr-x 1 root tty
 
1 members found this post helpful.
Old 06-09-2022, 01:57 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,710

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by lvm_ View Post
Check permissions on wall, they should be -rwxr-sr-x 1 root tty
Yep; that's what I have as well. And OP, I'll ask how those two users are logged in...are they SSH'ed into the system?
 
Old 06-12-2022, 04:36 AM   #7
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,816

Rep: Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211
who, w, write, wall rely on registration in the utmp data file. Some Linux GUI developers are proud to no longer support this old Unix mechanism. AFAIK ssh still supports it.
Furthermore, ensure there is no
mesg n
in /etc/profile (or enable it with command
mesg y
)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: We, Wall, we, Wall, Raku: Perl creator blesses new name for version 6 of text-wrangling lingo LXer Syndicated Linux News 0 10-12-2019 04:00 PM
how to broadcast a message to different computers using wall command pauljanygodwin Linux - Server 3 02-04-2010 05:26 AM
wall command won't work WilliamS Slackware 1 02-22-2007 11:54 PM
Is users whom have access to `wall` command a security risk? jon_k Linux - Security 1 08-31-2004 07:31 PM
wall command not outputing to screen aaronj Fedora 1 06-11-2004 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration