The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'E-mail Discussions' started by derekivey, Mar 22, 2006.

  1. derekivey

    derekivey Well-Known Member

    Joined:
    Nov 30, 2004
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    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. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    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.
     
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    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.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Nifty way of doing it.
     
  5. derekivey

    derekivey Well-Known Member

    Joined:
    Nov 30, 2004
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Thanks for the suggestion, I'll give it a try.

    Derek
     
Loading...

Share This Page