Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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" '
Originally posted by benjithegreat98 What about this....
mv /usr/bin/write /usr/bin/donotwrite
problem solved. ... Or does that program need to exist for some other reason.
Or problem not solved at all, as it were. As I said, the ability to write is related to the permissions on the terminal. If they still have write permission, then there is nothing to stop them doing `echo "hi pal, lol" > /dev/pts/2'.
Originally posted by hirenpandya alias write = 'echo "Unauthorized To Send Message"'
I would remove the permissions, which should make write fail. If you want to put this alias anywhere then you would put it in a global startup file. However, it is entirely pointless as there is not much stopping the user from removing the alias -- or as shown above, not using write. If you want to solve this problem, look into the permissions set during the chown'ing phase on the terminal.
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
the command your are looking for is mesg n , to enable this back you write mesg y ... but when you logout from you terminal this will return back to normal.. so if you want to have this disabled in whenever you login to bash or csh or any other shell write the command into .bashrc or .cshrc for bash or csh respectively like this :