Announcement

Collapse
No announcement yet.

Setup Email on Root Login (to detect breaches)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setup Email on Root Login (to detect breaches)

    If an unauthorized person gains access to root, you want to be notified - you can do so by doing the following while logged into root:

    # cd /root
    #vi .bash_profile
    Add the following line:

    echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | awk '{print $6}'`" [email protected]

    Save an exit vi: :wq
    Where [email protected] is your email address.

    Now, you will be notified for each root access attempt.
    Warm Regards,
    Keanu
    Support Team
Working...
X