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.

Logging cPanel Users

Discussion in 'General Discussion' started by Fuyucorp, Mar 2, 2007.

  1. Fuyucorp

    Fuyucorp Registered

    Joined:
    Feb 6, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Heya,

    Due to a few issues, I was wondering if it was possible to log all IPs which access cPanel, similar to "Last IP which accessed:' only put down in a log with the relevant account.
     
  2. Fuyucorp

    Fuyucorp Registered

    Joined:
    Feb 6, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    No one knows a method of doing so?
     
  3. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    In each of the /home/username folders is a file called ".lastlogin this stores the IP each time someone logs into the cpanel, you can obtain the IP from there.

    Mickalo
     
  4. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    Also, you could grep your access logs for all connections. Setup a cronjob if you have that option in your cpanel. If not, im sure your provider would fill the request.
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    I think there is also that information in /usr/local/cpanel/logs I cannot recall the log name ATM but it should be easy to figure out which one stores it.
     
  6. cPanelKyle

    cPanelKyle Technicial Analyst III/Migrations Specialist
    Staff Member

    Joined:
    Feb 10, 2003
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Twitter:
  7. markfrompf

    markfrompf Well-Known Member

    Joined:
    Mar 27, 2006
    Messages:
    176
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Los Angeles, CA
    cpanelkenneth and cpkyle really should have the same title. Either "Staff Member" or "Staff" but both seems a bit odd.

    :p
     
Loading...

Share This Page