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


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How can I deny messaging which use "wall" to send message out?
# 1  
Old 07-17-2002
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
# 2  
Old 07-17-2002
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  
Old 07-17-2002
Power

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  
Old 07-17-2002
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  
Old 07-17-2002
You are right Perderabo disabling walld in
/etc/inetd.conf will only disable rwall
remote wall

Thanks for putting me right Perderabo
# 6  
Old 07-17-2002
You could move the executable or change the permissions so only a certain group or user could run it.
# 7  
Old 07-17-2002
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?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Expect: spawn id exp5 not open while executing "expect "$" { send "sudo su -\r" }"

Hi All, i am trying to ssh to a remote machine and execute certain command to remote machine through script. i am able to ssh but after its getting hung at the promt and after pressing ctrl +d i am gettin the out put as expect: spawn id exp5 not open while executing "expect "$" {... (3 Replies)
Discussion started by: Siddharth shivh
3 Replies

2. Shell Programming and Scripting

Problems with "write" and "wall"

Hello, I am using VirtualBox to simulate a small network with two Linux computers, the host is Mac OS X. My problem is that I can't send "write" and "wall" messages from the host to one of those Linux computers. Here is what works: - The virtual Linux computer answers "ping" messages that have... (5 Replies)
Discussion started by: 123_abc
5 Replies

3. UNIX for Dummies Questions & Answers

Unix "look" Command "File too large" Error Message

I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this: $ look "string" "/home/patrick/filename.txt" However, this gives me the following message: "look: /home/patrick/filename.txt: File too large" So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Red Hat

[help] how to send wall/broadcast message to all clients

Hi, as per title, please help me.. I use command wall host1 host2 hellowwwww but it only receive in the host1.. how can I send this to all the clients.. I want this 1 server to send to all the clients.. or is there any program that I can use? I know this openfire, but seems complicated since... (5 Replies)
Discussion started by: flekzout
5 Replies

6. Shell Programming and Scripting

communicating wth another user aside from "wall" and "write"

Hi, Can anyone suggest a Unix command or c-shell algorithm to simulate to behavior of "wall" command minus the "all users"? What I'm trying to do is to send a notice to just one particular user but i dont want other remotely-logged-on users to receive the message (on the pseudo-terminals). I... (6 Replies)
Discussion started by: Deanne
6 Replies

7. UNIX for Dummies Questions & Answers

Need info:"talk,write and wall"

hi nu 2 this forum., can any one tell me how to 'talk' to a person on other system who is connected in a network(LAN) via terminal....... and when to use wall,write and talk.. regards leenus :) (1 Reply)
Discussion started by: mr.anilbabu
1 Replies

8. Shell Programming and Scripting

Running "wall" command from cron

Hello, Ive written a little script that broadcasts a message if certain criteria are met. The script works fine when I run it. I entered it in the crontab to run every hour on the hour. The script executes, but the wall command doesnt seem to be executing correctly. I only have this... (1 Reply)
Discussion started by: xadamz23
1 Replies

9. UNIX for Advanced & Expert Users

hosts.deny "mailing thing"

Hey people i need a little help here if anyone knows who to separate the mailing users and can i have more then one at the end of the command line please tell me :::This is just an example::: /etc/hosts.deny: tftpd: ALL: (/some/where/safe_finger -l @%h | \ ... (2 Replies)
Discussion started by: beo
2 Replies
Login or Register to Ask a Question