Solved

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

Posted on 2015-02-20
4
129 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 29

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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