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.

Cpanel last access

Discussion in 'General Discussion' started by Jonjimar, Nov 3, 2009.

  1. Jonjimar

    Jonjimar Member

    Joined:
    Dec 1, 2008
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    hi,

    how i can know where are all the ips that access to the cpanel control panel?

    in the panel de control i can only see one but i need all was before that.

    Thanks a lot for the help

    Jonathan J.
     
  2. ljesh

    ljesh Well-Known Member

    Joined:
    Aug 2, 2008
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    This is a feature I would really like to see.
    Currently, you can't do that (unless you search through access logs).
     
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The following two log files could be searched to help locate specific log entries from users logging-into and accessing cPanel, WHM, and Webmail:
    Code:
    /usr/local/cpanel/logs/access_log
    /usr/local/cpanel/logs/login_log
    Via root SSH access, a command using "grep" could be formed to search for a specific cPanel account username:
    Code:
    # grep -in "username" /usr/local/cpanel/logs/access_log
    # grep -in "username" /usr/local/cpanel/logs/login_log
    I included the CLI switches "-i" for a case-insensitive search, and "-n" to prefix output by the respective line numbers within the log file.

    It is also possible to combine both log file paths into one command so they are searched together:
    Code:
    # grep -in "username" /usr/local/cpanel/logs/access_log /usr/local/cpanel/logs/login_log
    Additional usage of "grep" may be found in its manual "man" page:
    Code:
    # man grep
     
    #3 cPanelDon, Nov 3, 2009
    Last edited: Nov 3, 2009
Loading...

Share This Page