Warning |
---|
This article is just starting. Some topics, Email Login Events
Integrity Check
File Permissions - World Writable
|
Email Login Events
On servers that are managed by only a few administrators it is often useful to know if someone has logged in.
...
First ensure your system is setup to send emails.
Here is the start of the contents of the login notification script,
...
Code Block | ||||
---|---|---|---|---|
| ||||
... more stuff up here ...
umask 022
echo "User $LOGNAME logged into $HOSTNAME on $(date)" | mail -aFrom:sentry@bonsaiframework.com -s "Sentry Alert Login $LOGNAME@$HOSTNAME" bhitch@imagecomics.com
|
Now every login will result in an alert.
...