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.

Who logged into cPanel

Discussion in 'General Discussion' started by echo_unlimited, Jun 9, 2008.

  1. echo_unlimited

    Joined:
    Dec 24, 2006
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello,

    I want to know how to find out 'who logged into cpanel' for this particular account ... like a list of logged IPs which shows who logged into 'x' cpanel account on the server. I have root access to my server, does this function exist?

    --- If not, could I suggest that this function be included or made for the next version? As I sometimes get users who have hosting with me saying their cpanel account has been hacked due to poor passwording. - Would be awesome to catch out these people and block their IPs so they can't do it again or on any other cPanel account.

    Thanks.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Simply check the cPanel/WHM access log:

    /usr/local/cpanel/logs/access_log
     
  3. echo_unlimited

    Joined:
    Dec 24, 2006
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi David,

    That worked. Thanks!

    However wouldn't it be easier if all this information was retained inside WHM and you could click a particular account and see the access logs for that particular account only and so forth. - I mean at this moment in time, I'm sifting through thousands of IPs and it really makes it hard to find out information on who logged into this particular cpanel account. :(

    Cheers. :)
     
    #3 echo_unlimited, Jun 9, 2008
    Last edited: Jun 9, 2008
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Usually admins use utilities such as grep to make the job of acquiring pertinent information from logs easier. However, you are welcome to submit this as an official feature request to: http://bugzilla.cpanel.net
     
  5. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    You can use grep command to search for particular user account’s access logs.

    For example. if you want to see only the access logs of user “xyz” then you can use below command:

    cat /usr/local/cpanel/logs/access_log | grep xyz > test.txt
     
Loading...

Share This Page