dedicated server help
web hosting guides
dedicated server home dedicated server forums dedicated server reviews dedicated resources partners dedicated server resources contact dedicated servers

dedicated server guides
Getting Started
General Tutorials
cPanel Tutorials
Security Center
Name Servers
Server Monitoring
Server Backups
Hosting Interviews
Web Hosting News
Reviews
For Fun
Linux Tutorials
Hosting Articles
Web Hosting Tutorials
 
 
 
web hosting tutorials
About Us
RSS Feed
Disclaimer
Site Map

 

Root E-Mail Notification

Last Updated: November 30, 1999


  • Login to your server via
    SSH as root.

    (If you disabled root logins login with your other username, and
    su to root)

  • Type: pico .bash_profile

  • At the end of the file put this:


    echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert:
    Root Access from `who | awk '{print $6}'`" offsite@emailaddress.com


  • Make
    sure that the e-mail address you use is not hosted on the server
    as a hacker could simply delete the e-mail and notifications, and
    you would never know.

    cpanel tutorials
    cPanel Resources
    Dedicated Servers