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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    561
    Likes Received:
    40
    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” *
    
     
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page