spacer.png, 0 kB
spacer.png, 0 kB
Home arrow General Articles arrow Root E-Mail Notification
Root E-Mail Notification Print E-mail

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}'`" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it

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.

Original: http://www.ukwebmasterforums.com/t4904-root-email-notification.html

Web Hosting UK (http://www.session9.co.uk/ )

Webmaster Forums ( http://www.ukwebmasterforums.com/ )

Web Hosting Affiliate ( http://www.session9.co.uk/web-hosting-affiliate/ )

Domain Reseller ( http://www.domainvendor.co.uk/ )


About the Author

Web Hosting UK (http://www.session9.co.uk/ )

Webmaster Forums ( http://www.ukwebmasterforums.com/ )

Web Hosting Affiliate ( http://www.session9.co.uk/web-hosting-affiliate/ )



Related Items:

 
< Prev   Next >
spacer.png, 0 kB
spacer.png, 0 kB
spacer.png, 0 kB
spacer.png, 0 kB
ss_blog_claim=69052e837be509b449eef698573ca058