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.

No raw FTP logs

Discussion in 'General Discussion' started by Erik1, Mar 7, 2015.

  1. Erik1

    Erik1 Member

    Joined:
    Dec 13, 2014
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    In WHM raw FTP log file download gives “the requested log file for the domain is empty” for all domains. There are FTP log files in the logs folder but they are last updated Dec 30 2014. How do I activate FTP logs? Raw apache log file download works fine.

    Or are there no logs because I us SFTP (not FTP)?
     
    #1 Erik1, Mar 7, 2015
    Last edited: Mar 7, 2015
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    SFTP is essentially FTP over SSH. It does not run on the same protocol as FTP. Thus, there is no SFTP activity logged to your FTP log files.

    Thank you.
     
  3. elmister

    elmister Active Member

    Joined:
    Mar 2, 2004
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    there is a way to log SFTP activity

    in /etc/ssh/sshd_config
    look for the line

    Subsystem sftp /usr/libexec/openssh/sftp-server

    change it to

    Subsystem sftp /usr/libexec/openssh/sftp-server -l INFO

    i think cPanel will not split this information in the domain's ftp log but you may be able to get some data

    @cPanel: this is something to do, you've added ftpsh as a default shell allowing all users to upload files without logging the uploads, if a password gets compromised we will not be able to track the upload
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please ensure you submit feature requests via:

    http://forums.cpanel.net/pages/cpfeatures

    Thank you.
     
  5. elmister

    elmister Active Member

    Joined:
    Mar 2, 2004
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Thank you but i'm unable to register there, i need an invite code, forum login details don't work there
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You should be able to leave the invite code blank. Let us know if this does not work.

    Thank you.
     
Loading...

Share This Page