Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

cPanel Login history for all users?

Discussion in 'General Discussion' started by axishift, Nov 27, 2008.

  1. axishift

    axishift Member

    Joined:
    Feb 25, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    151
    Is there a log file on cpanel that list all login activities on the server? on a single file?

    ex: /var/log/cpanel_logged_in_users.log

    Then under the log file => it shows cpanel, ftp, ssh, mail, pop3 logins?

    thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 axishift, Nov 27, 2008
    Last edited: Nov 27, 2008
  2. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    769
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    /dev/null
    Assuming a RHEL/Centos system:

    All cpanel related logs are in /usr/local/cpanel/logs
    (Although most of these are similar to apache logs)

    POP/IMAP logins are in /var/log/maillog
    FTP Logins are in /var/log/messages
    SSH Logins are in /var/log/secure

    There is no unified log of all
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    6
    Trophy Points:
    168
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    The file you're looking for is /usr/local/cpanel/logs/access_log.
    Simply "grep -E 'login|username' /usr/local/cpanel/logs/access_log".
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice