Email after Console-Login
Hello list, I have a rootserver with remote-console. After I have recognised, that my provider stores the password for the remote-console in plain-text, I'm worried about security. - The bootloader password is set and active. - Singleusermode is not allowed Can someone describe me a simple solution to send me an email after a login-attempt (failed or succeded). The destination of this email should be an account of my email-provider. Thanx Kai Pfeiffer
Hi,
On Tue, 7 Dec 2004 17:43:44 +0100
Kai Pfeiffer
Hello list,
I have a rootserver with remote-console. After I have recognised, that my provider stores the password for the remote-console in plain-text, I'm worried about security.
- The bootloader password is set and active. - Singleusermode is not allowed
Can someone describe me a simple solution to send me an email after a login-attempt (failed or succeded). The destination of this email should be an account of my email-provider.
This may not be a "simple solution" but you can use a log watcher (like "swatch", for example) to monitor logs and send you an e-mail. If you like the adventure, find and edit the login scripts and just add a "mail" command. (For successful logins, you can probably just use ".bashrc" or something similar for the purpose...) HTH, -- - E - on SUSE 9.1 | blackbox 0.65 | copperwalls was here ;) "Everyone shrewd will act with knowledge, but the one that is stupid will spread abroad foolishness." - Proverbs 13:16
Hello, Am Sonntag, 12. Dezember 2004 17:03 schrieb - Edwin -:
On Tue, 7 Dec 2004 17:43:44 +0100 Kai Pfeiffer
wrote: Can someone describe me a simple solution to send me an email after a login-attempt (failed or succeded). The destination of this email should be an account of my email-provider.
This may not be a "simple solution" but you can use a log watcher (like "swatch", for example) to monitor logs and send you an e-mail.
Yes, would be the right solution. Additionally, you always have the non-normal (based on your rules) log-messages via mail. I use logdigest for doing this.
If you like the adventure, find and edit the login scripts and just add a "mail" command. (For successful logins, you can probably just use ".bashrc" or something similar for the purpose...)
This is a race condition between .bashrc and the user's fingers ;-) If a user presses Ctrl-C quickly after logging in, .bashrc will not be processed [completely]. Regards, Christian Boltz -- »Microsoft Outlook Express - Designed to enable Virus replication.« [http://www.microsoft.com/mac/products/office/2001/virus_alert.asp]
participants (3)
-
- Edwin -
-
Christian Boltz
-
Kai Pfeiffer