Skip to main content

Search all accounts for file and/or list accounts with activity?

Comments

3 comments

  • SysSachin
    A) Search all accounts for files by name?

    Yes, You have to find the accounts which is having file. Use bellow command
    find /home/ -name filename
    Also, Find files that contain a text
    grep -lir "text to find" *
    0
  • peterallcdn
    Thanks SysSachin, that helps. Anyone know how to also list all accounts with recent activity such as file uploads, new email address creation etc?
    0
  • cPanelMichael
    Hello, For email accounts, you could develop a custom bash script that searches /usr/local/cpanel/logs/access_logs for activity such as email account creation, or setup a hook that automatically runs a custom command after email account creation: Guide to Standardized Hooks - Software Development Kit - cPanel Documentation The following third-party URL may help for file upload activity: "watch" command to notify on newly created files on linux Thank you.
    0

Please sign in to leave a comment.