Disabling 'write command'
I have installed Red Hat Linux 9.0 on one machine. This machine has 100 normal users which log in to my Linux Server using TELNET service. The clients are Windows 2000 Professional.
I want to disable 'write' command so that normal users when log in to Linux Server cannot use this command for sending messages to other logged users. I have tried to use 'alias' command but i dont know how to use it and where to put that command. Kindly give me solution Thanx in advance Hiren Pandya |
The abilities of the `write' command are dictated by the permissions on the terminals. To stop users being able to write to another users terminal you just have to make sure they do not have the correct Unix permissions to write to the device file.
|
What about this....
rm /usr/bin/write or mv /usr/bin/write /usr/bin/donotwrite problem solved. ... Or does that program need to exist for some other reason. |
Hello Benji. Thanx for the prompt reply. the mv command is working fine.
But cant i use something like this for displaying warning message "Unauthorized To Send Message" when a user tries to execute "write" command : alias write = 'echo "Unauthorized To Send Message" ' In which file should I put the above command ? Thanx once again |
Quote:
Quote:
|
what's about "chmod 500 /bin/write" ???
|
Quote:
|
Quote:
mesg n |
Why in the hell are you replying to a thread of 2003 ?
|
venix, please don't go around resurrecting dead threads. Thanks.
|
All times are GMT -5. The time now is 12:28 PM. |