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]