Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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???
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
)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.