The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-19-2007 09:52 PM
communicating wth another user aside from "wall" and "write" Deanne Shell Programming and Scripting 6 05-11-2007 02:43 AM
Need info:"talk,write and wall" mr.anilbabu UNIX for Dummies Questions & Answers 1 07-23-2006 01:27 AM
Running "wall" command from cron xadamz23 Shell Programming and Scripting 1 05-27-2005 05:43 PM
hosts.deny "mailing thing" beo UNIX for Advanced & Expert Users 2 10-05-2001 02:35 AM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2002
Registered User
 

Join Date: Sep 2001
Posts: 20
How can I deny messaging which use "wall" to send message out?

Dear all,


How can I deny messaging which use "wall" command to send message out?


regards
Wilson
Forum Sponsor
  #2 (permalink)  
Old 07-17-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,355
Sorry but you can't do that. wall is used by root to send messages to everyone. And root will always be able to write to your terminal.
  #3 (permalink)  
Old 07-17-2002
Registered User
 

Join Date: Mar 2002
Location: London, England
Posts: 262
Red face

I disagree with Perderabo you can disable the wall daemon in
/etc/inetd.conf file

comment out wall daemon i.e place an # in front of walld/1 in /etc/inetd.conf

then issue a kill -HUP (inetd proccess id)
  #4 (permalink)  
Old 07-17-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,355
wall != rwall

Disabling the rwalld daemon will stop remote hosts from sending any messages at all to the local host. However the wall command does not use the rwalld daemon.
  #5 (permalink)  
Old 07-17-2002
Registered User
 

Join Date: Mar 2002
Location: London, England
Posts: 262
You are right Perderabo disabling walld in
/etc/inetd.conf will only disable rwall
remote wall

Thanks for putting me right Perderabo
  #6 (permalink)  
Old 07-17-2002
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
You could move the executable or change the permissions so only a certain group or user could run it.
  #7 (permalink)  
Old 07-17-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,355
Hmmm...I may have been too hasty here. I never before noticed that ordinary users can run /usr/sbin/wall. But it is using the same permission scheme as the "write" command. You learn something new every day, I guess.

It is possible for a user to protect his terminal from wall/write messages from ordinary users. The way to do this is with the command "mesg n". And "mesg y" will accept messages again.

But if the messages are coming from root, there is no hope. Root is supposed to be able to do pretty much everything. As a sysadmin, I'm a bit aghast at the prospect of ordinary users running wall. Is this accepted practice in some shops?
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0