Results 1 to 6 of 6
-
10-20-2009, 12:35 PM #1Junior Guru Wannabe
- Join Date
- Jul 2009
- Location
- In the sky
- Posts
- 40
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?
-
10-20-2009, 12:50 PM #2WHT Addict
- Join Date
- Jun 2007
- Location
- San Francisco
- Posts
- 150
Use the find utility.
-
10-20-2009, 02:16 PM #3Junior Guru Wannabe
- Join Date
- Jun 2008
- Posts
- 74
From a command line, execute:
find /home -name 'hello.php'
-
10-21-2009, 06:11 AM #4WHT Addict
- Join Date
- Jun 2008
- Location
- India
- Posts
- 130
if you need to searhc only on public_html then try this
find /home/*/public_html/ -name 'hello.php'
-
10-21-2009, 07:10 AM #5Junior Guru Wannabe
- Join Date
- Oct 2009
- Location
- UK - London
- Posts
- 73
It may be faster to run:
updatedb
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
or
locate file.*
etc.
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
-
10-21-2009, 07:29 AM #6Support Facility
- Join Date
- Jun 2009
- Posts
- 2,335
Using the find utility you can have many option for searching the specific file on the server by its size, permissions and even more.
Similar Threads
-
|| ATTENTION || The CPanel host that everyone's talking about! iiPanel (dot) net
By veronsolutions in forum Shared Hosting OffersReplies: 0Last Post: 09-01-2008, 02:22 AM -
Windows trouble: Double clicking on a folder opens search pane, not the folder!
By jireh in forum Web Hosting LoungeReplies: 3Last Post: 11-12-2005, 03:14 PM -
script in cpanel to submit site to search engines
By mmjulian in forum Hosting Software and Control PanelsReplies: 5Last Post: 07-08-2005, 09:29 AM -
PHP script to add accounts to WHM/CPanel
By giantstep in forum Hosting Software and Control PanelsReplies: 4Last Post: 12-26-2002, 01:30 PM -
In Search Of A Script - Cpanel = Alabanza
By CrowMan in forum Dedicated ServerReplies: 1Last Post: 10-09-2001, 07:50 PM