Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2009
    In the sky

    Search for a script/folder in everyone's cpanel accounts

    Hi - is there a way you can search for a particular file or folder in everyone's cpanel accounts on the server? Like if there was a file called "hello.php", can I find everyone who has this file?

  2. #2
    Join Date
    Jun 2007
    Use the find utility.

  3. #3
    From a command line, execute:

    find /home -name 'hello.php'

  4. #4
    Join Date
    Jun 2008
    if you need to searhc only on public_html then try this

    find /home/*/public_html/ -name 'hello.php'

  5. #5
    Join Date
    Oct 2009
    UK - London
    It may be faster to run:


    This command builds/updates the database records of all files/directories etc. and you can then use the following to command to search the entire server much faster:

    locate file.php
    locate file.*


    This is usually more useful if you run updatedb quite often, but is still a good method if you're doing a few large-scale searches.
    Guy Riese - Tech-Hosts Ltd. - Registered company in England & Wales (Based in UK - Europe)
    High quality & affordable Web Hosting, Reseller Hosting, Master Reseller Hosting, Linux VPS & Dedicated Servers
    Lowest priced domain names in the industry - instant registration and management

  6. #6
    Using the find utility you can have many option for searching the specific file on the server by its size, permissions and even more.
    Support Facility | 24/7 web hosting technical support services
    Technical support | Server management | Data migration

    Technical Articles

Similar Threads

  1. Replies: 0
    Last Post: 09-01-2008, 02:22 AM
  2. Replies: 3
    Last Post: 11-12-2005, 03:14 PM
  3. script in cpanel to submit site to search engines
    By mmjulian in forum Hosting Software and Control Panels
    Replies: 5
    Last Post: 07-08-2005, 09:29 AM
  4. PHP script to add accounts to WHM/CPanel
    By giantstep in forum Hosting Software and Control Panels
    Replies: 4
    Last Post: 12-26-2002, 01:30 PM
  5. In Search Of A Script - Cpanel = Alabanza
    By CrowMan in forum Dedicated Server
    Replies: 1
    Last Post: 10-09-2001, 07:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts