Solved

Need to delete same folder accross different web accounts in VPS?

Posted on 2015-02-20
4
121 Views
Last Modified: 2015-02-21
My hosting provider has found a few suspicious files which I have now removed.
Just wondering if there is a command that I can use to remove all bValidator folders from my VPS?

Thanks,


HEX}php.uploader.max.574 : /home/actions1/public_html/bValidator/test2.php
{HEX}gzbase64.inject.unclassed.15 : /home/bluepage/public_html/flash/stat.php
{HEX}php.uploader.max.574 : /home/kingspace/public_html/bValidator/test2.php
{HEX}php.uploader.max.574 : /home/metrofor/public_html/bValidator/test2.php
{HEX}php.uploader.max.574 : /home/mippcoss/public_html/bValidator/test2.php
{HEX}php.uploader.max.574 : /home/ourshop/public_html/bValidator/test2.php
{HEX}php.uploader.max.574 : /home/sevenths/public_html/bValidator/test2.php
0
Comment
Question by:sabecs
  • 2
4 Comments
 
LVL 9

Assisted Solution

by:Rob_Jeffrey
Rob_Jeffrey earned 200 total points
ID: 40622573
If you have shell access, you can use find.

find /home -name "bValidator" -exec rm -rf {} \;


Before you run the above, you can test to see what files would be deleted with:

find /home -name "bValidator"
0
 

Author Comment

by:sabecs
ID: 40622619
Thanks Rob, would that just remove the directory called bValidator and everything in it, or will it also remove other files that might named bValidator   ?
0
 
LVL 9

Expert Comment

by:Rob_Jeffrey
ID: 40622959
That would also remove files named bValidator too.
0
 
LVL 27

Accepted Solution

by:
serialband earned 300 total points
ID: 40623649
If they all follow the same order, these can be easier.
rm  /home/*/public_html/bValidator/test2.php
rmdir  /home/*/public_html/bValidator/
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now