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.

FTP Logs?

Discussion in 'General Discussion' started by sefuwl, Aug 14, 2008.

  1. sefuwl

    sefuwl Registered

    Joined:
    Aug 14, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi Guys.
    I'm coming over from Direct Admin so I a total noob with cpanel/whm.
    Anyway in DA, when logged in as the admin I could view a log of people who have logged in or attempted to login and also view what files they uploaded or downloaded.

    Is there something similar with CP or WHM? I noticed there are few logs but they are not generated for a day, is there anything that is live
     
  2. Freezer

    Freezer Well-Known Member

    Joined:
    Jun 13, 2005
    Messages:
    120
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Den Haag
    Hi,

    i had this problem to. I have turned on logging in pureftpd.conf, and for "live" viewing you can use pure-ftpwho in console.

    Keep in mind, ftp traffic isn't counting into an users traffic quota... Really strange because they can traffic all they want and you can't check it... search my bug at bugzilla and vote for this fix!

    http://bugzilla.cpanel.net/show_bug.cgi?id=6463
     
  3. sefuwl

    sefuwl Registered

    Joined:
    Aug 14, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    How do you use/access pure-ftpwho?
     
  4. Freezer

    Freezer Well-Known Member

    Joined:
    Jun 13, 2005
    Messages:
    120
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Den Haag
    Login through ssh?

    It will give you something like:

    root@tank [~]# pure-ftpwho

    +------+---------+-------+------+-------------------------------------------+
    | PID | Login |For/Spd| What | File/IP |
    +------+---------+-------+------+-------------------------------------------+
     
  5. MaestriaNick

    MaestriaNick Well-Known Member

    Joined:
    Aug 6, 2008
    Messages:
    159
    Likes Received:
    3
    Trophy Points:
    18
    Also, ftp will log the logins and file transferes to /var/log/messages (by default ). You can check the that file for ftp logins / file transfer logs. If you use pure-ftpd, just do the following command after ssh to the server as root

    grep pure-ftpd /var/log/messages
     
  6. meeti

    meeti Well-Known Member

    Joined:
    Dec 25, 2007
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    does any way to check the cpanel or whm log record?


    thanks
     
  7. Humayun

    Humayun Member

    Joined:
    Jul 15, 2008
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    Code:
    /usr/local/cpanel/logs 
    This directory contains access log ,error log and license log of cPanel control panel.

    I hope u got the answer :)

    thnxx and cheers
     
  8. Humayun

    Humayun Member

    Joined:
    Jul 15, 2008
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
  9. meeti

    meeti Well-Known Member

    Joined:
    Dec 25, 2007
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Hi,Humayun,


    thanks for your instant help a lot,

    but i have a question else,

    should i turn on /off on whm to chose if i want to open/close the record feature?

    because i check the /usr/local/cpanel/logs/login_log,

    there are only two record on it only.



    thanks
     
  10. meeti

    meeti Well-Known Member

    Joined:
    Dec 25, 2007
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Hi,


    because my friend say some of their files are gone,

    and i check the /var/log/messages,

    it looks likely no "delete" of ftp record on it,

    by the way,i wonder if anyone delete from cpanel,

    and i can not find the record on /var/log/messages at all.



    thanks
     
  11. Humayun

    Humayun Member

    Joined:
    Jul 15, 2008
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    No problem mate

    no u dont need to on/off whm


    if this happen contact ur host to ask
     
  12. meeti

    meeti Well-Known Member

    Joined:
    Dec 25, 2007
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    if i ssh to the server to check,

    does any file record those behavior about change in cpanel?


    thanks
     
  13. Humayun

    Humayun Member

    Joined:
    Jul 15, 2008
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1

    There is usually a log file that logs sshd activity. I have seen it called

    check this this will show you the information about ssh
     
  14. meeti

    meeti Well-Known Member

    Joined:
    Dec 25, 2007
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    i am sorry,

    you may mis-understand my words,

    i mean if somebody login cpanel and do some change in cpanel,

    like delete files...etc in cpanel.



    now,i want to check the the log of the body's change,

    i ssh to the server,where can i check those log?



    thanks
     
  15. Humayun

    Humayun Member

    Joined:
    Jul 15, 2008
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    sorry to misunderstand u
    try this

    Code:
    /usr/local/cpanel/logs
    you will find a different type of logs here i hope it will b helpful to you
     
Loading...

Share This Page