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 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:
    1
    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
     
    #1 axishift, Nov 27, 2008
    Last edited: Nov 27, 2008
  2. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    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
     
  3. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    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".
     
Loading...

Share This Page