LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSH Login Notification (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-login-notification-216273/)

holdika 08-11-2004 12:20 PM

SSH Login Notification
 
Hello,
I would like to enable a "bash" file I think it's called that. When ever someone logs into my server it would send out an email notification to me. It was enabled before by someone, but I would like to do this myself. How can I do this?
thanks

holdika 08-11-2004 02:39 PM

anyone?

Eagle_Seven 08-11-2004 03:26 PM

Maybe you're confused.

BASH stands for

BourneAgainSHell

It is the most common shell of the command line, and you can use it in almost all of the major distros. However, you may be refering to a script you accessed in BASH.

chrism01 08-11-2004 03:28 PM

I hope I understand your qn correctly. A bash file is a script that can be run, containing cmds like the ones you would normally type in at the cmd line.
Hopefully you mean by enable that someone else has already written it for you and you just need to link it in to the login sequence.
A good place to put a call to it would be at the end of /etc/profile.
This assumes you mean an interactive login, not a web access.
HTH

holdika 08-11-2004 03:39 PM

This what he did I believe

"File integrity checker also has been conf: and sends an email to blahblah@hotmail.com verifying the checksums of various files on the server.

email will be send to blahblah@hotmail.com everytime an user ssh as root to your server ."


All times are GMT -5. The time now is 09:04 AM.