...
On more larger system it is more manageable to only send notification when sudo access is attempted.
Here are the contents of the login notification script,
Code Block | ||||
---|---|---|---|---|
| ||||
echo "User $LOGNAME logged in $(date)" | mail -s "Sentry Alert" bhitch@imagecomics.com |
Add this to the global startup scripts.
Email Sudo Events
On small systems, you will want to be emailed sudo events.
...