Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'General Discussion' started by peterallcdn, Dec 9, 2016.

  1. peterallcdn

    peterallcdn Member

    Joined:
    Feb 4, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    151
    Hello,

    Is there a way in WHM to either...

    A) Search all accounts for files by name?

    B) List all accounts with recent activity such as file uploads, new email address creation etc?

    An account was found to have been compromised and had phishing files uploaded. Unfortunately that account is one of dozens of gateway site accounts set up years and years ago and they have similar login credentials. These accounts will be removed or consolidated as soon as I have free time, but for now I'd like a quick way to spot any other accounts that may have been compromised hence the above requests.

    Thanks for any and all help!
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    43
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes, You have to find the accounts which is having file. Use bellow command
    Code:
    find /home/ -name filename
    
    Also, Find files that contain a text

    Code:
    grep -lir “text to find” *
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    danielpmc likes this.
  3. peterallcdn

    peterallcdn Member

    Joined:
    Feb 4, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    151
    Thanks SysSachin, that helps.

    Anyone know how to also list all accounts with recent activity such as file uploads, new email address creation etc?
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice