View Single Post
  #6 (permalink)  
Old 05-24-2007, 07:32 PM
Lyttek Lyttek is offline
Registered User
 
Join Date: Jan 2004
Posts: 672
Lyttek is on a distinguished road
Here's the code, taken directly from the 'secure your server' sticky:

Code:
Server e-mail everytime someone logs in as root

To have the server e-mail you everytime someone logs in as root, SSH into server and login as root.

At command prompt type: pico .bash_profile

Scroll down to the end of the file and add the following line:

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

Save and exit.
So, there's no script that's changed...

Having said that, when CP11 got updated, MailScanner choked, so I reinstalled using CS MailScanner package, so perhaps that's what's triggering it...

I'll have to try restarting MailScanner and see if that does as suggested.

And since you mention it, I've not been receiving (that I recall) the normal upcp emails... have to look into that as well
Reply With Quote