Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagebash
titlesentry-login.sh
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.

...