Skip to main content

Tracking deleted files?

Comments

4 comments

  • cPanelLauren
    If the files were deleted through the UI you'd be able to check this through the access logs but if the files were removed over SSH you'd want to check the bash history. You can run the history command and it will print the bash history of the current user from oldest to newest. It's also stored in /home/$user/.bash_history
    0
  • Abdel24hour
    If the files were deleted through the UI you'd be able to check this through the access logs but if the files were removed over SSH you'd want to check the bash history. You can run the history command and it will print the bash history of the current user from oldest to newest. It's also stored in /home/$user/.bash_history

    Thank you, but I was asking for specific words, I checked the logs and I saw IP from other country but all the logs about GET and CSS files from file manager, how can I know which exactly files deleted ! .. cPanel doesn't give me this ability from logs ..
    0
  • cPanelLauren
    Actual removals of items through the UI will show a POST request in the access logs but you won't necessarily see "removed" as an output. If the files were removed through the UI in the file manager, unless you specifically check the box they are put into a trash bin which can be found at /home/$user/.trash and it might be worth checking there as well.
    0
  • Abdel24hour
    Actual removals of items through the UI will show a POST request in the access logs but you won't necessarily see "removed" as an output. If the files were removed through the UI in the file manager, unless you specifically check the box they are put into a trash bin which can be found at /home/$user/.trash and it might be worth checking there as well.

    That's what I was looking for " POST " .. thank you
    0

Please sign in to leave a comment.