Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2004
    Posts
    50

    Default Get notified by email everytime someone logs in as root in WHM

    Hi,

    I already did this for ssh, where it emails me everytime someone logs in as root in ssh, but I wanted to know if there is a way to do the same thing for WHM? Does anyone know?

    Thanks,
    Derek

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Not easily. You'd probably need to write something to monitor /usr/local/cpanel/logs/access_log and have it send out an email if root logs in. Not that straightforward unless you can find a script that does something similar already.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    You could do like I do if you aren't afraid of modifying your WHM skin. Mine have a counter script at the bottom of the options frame, (the command file), that send me an email when it is called. It's set to show the count as a 1x1 pixel image so it isn't even seen.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Nifty way of doing it.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Member
    Join Date
    Nov 2004
    Posts
    50

    Default

    Thanks for the suggestion, I'll give it a try.

    Derek

Similar Threads & Tags
Similar threads

  1. how to monitor,or be notified of email blacklisting ?
    By SoftDux in forum Data Protection
    Replies: 4
    Last Post: 03-23-2010, 03:12 AM
  2. Root WHM Login/Access Logs
    By iUnknown in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-22-2008, 02:55 PM
  3. Alert everytime someone logs into WHM?
    By bls24 in forum New User Questions
    Replies: 1
    Last Post: 07-11-2008, 09:39 AM
  4. I'd like to be notified when a user changes their contact email
    By mccreare in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-15-2005, 06:27 PM
  5. Server restarts everytime I log into whm under root.
    By edkhosting in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-24-2005, 03:34 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube