[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] replacel formmail.pl from a server
- Subject: [cobalt-users] replacel formmail.pl from a server
- From: "ajb" <ajb@xxxxxxxxxxx>
- Date: Wed Jan 8 05:31:00 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Hi,
Being only a learner :-) I think as I know from my box that has the formmail.cgi script that
1. I want to delete them all ( NP )
2. I want to automatically replace them with one that is secure.
Its point two that I have no idea how to do as the scripts need to be replaced and the new script needs to be secure
any help on this point would be grate
All the Best
Andrew
-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Andy Brown
Sent: 08 January 2003 12:02 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-users] [raq4] how to remoge all formmail.pl from a
server
<snip>
On Wednesday 08 January 2003 11:33 am, Bob Lenaerts wrote:
> Hi All,
>
> We've hosted more then 300 sites on 1 raq.
> Now they are spamming via formmail.pl and formmail.cgi
> I really cant get into every vhost and remove the formmail.pl
>
> How can I use 1 single command to RM ALL the formmail.pl's ?
</snip>
Quick and dirty script time::
-----------------------------------------------------------------------------------
#!/bin/sh
cd /home/sites/
FILESTOFIX=`cd /home/sites;find |grep formmail.pl`
for i in $FILESTOFIX; do
rm $i
echo "Deleting $i"
done
echo "All done!"
-----------------------------------------------------------------------------------
That will go into /home/sites, find all the formmail.pl files and delete them.
TEST IT FIRST AS NO GUARANTEE!!
Regards,
Andy Brown
andy@xxxxxxxxxx
http://www.raqpak.com/
_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users