Results 1 to 3 of 3

Thread: ROOT SSH login Alert

  1. #1

    Default ROOT SSH login Alert

    Hey there, another question that I should probably know the answer to but here goes: How can I set my ROOT SSH login Alert. Any help or suggestions welcome. Thanks.

  2. #2

    Default Starting from where?

    Do you need to know the whole process or is there a certain place you can get to and then are getting stuck. Let us know and we might be able to help you out with that.

  3. #3
    Join Date
    Apr 2010
    Posts
    57

    Default

    Try this:


    Edit the file .bashrc. pico /root/.bashrc

    At the end of the file add this line:

    echo 'ALERT - Root Shell Access YOURSERVERNAME on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" email@mydomain.com

    Save the file.

    You need to replace "YourServerName" with the name of your server and email@mydomain.com with the actual email address.
    Let me know how it goes.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •