Alert Message when someoe connect to a server.
I need help on how to create a ksh program to detect when a user connects to my server through a message.
Thanks in Advance |
when someone logs in, they are usually logged in /var/log/messages of /var/log/secure. just watch that with your tool of choice.
|
how do they connect to the server via
ftp ssh telnet you could monitor for the instances spawned by these daemons so that if you have any instance that doesnt belong to you .. an alarm could be triggered Code:
ps -ef |
Or, more generally, any time a TCP (or UDP?) connection is established on a port with a listener bound to it. In that case, you could use an iptables rule to log the connection event, and then a daemon that watches the log file could issue some sort of message.
--- rod. |
It via:
ftp ssh I was thinking in a (FIFO) and syslog something like this: #!bin/ksh while cat /path/fifo; do write admin <<- EOF $info EOF sleep 2 done How can I make a prompt like screen in a shell? For either display a short message or ask something. The promt I am referring to is like when you look your box and you move your mouse a lil box prompts your password..something like that.. ps.. could you post an example of what you would do?? Thank |
Quote:
Code:
Xdialog --msgbox "Hello how are you?" 0 0 Code:
xterm -e "echo 'Hello how are you? Press any key.' ; read a" Quote:
|
Thanks for all yours post. It has really been helpful. How can i disable CTRL+D, CTRL+C On a shell script. Only Trap can do it or is there any other function that can do the job? ANd also how can i hide what a user types on the shell like when it prompts a password? Using echo or any other promt function?
eg: echo -n "Type in your passwd " Thanks |
All times are GMT -5. The time now is 12:53 AM. |