[BlueOnyx:01684] Re: Sendmail attack, again

Chris Fazekas cfazekas at gmail.com
Tue Jul 14 09:55:09 -05 2009


I've found for deleting lots and lots of files the following works great.

cd /some_directory_that_contains_lots_of_files
 find . -name 'spam-*' | xargs rm

you can add a -f flag to the rm.

Cheers,

Chris

On Tue, Jul 14, 2009 at 8:25 AM, Michael Stauber<mstauber at blueonyx.it> wrote:
> Hi Steve,
>
>> bash: /bin/rm: Argument list too long
>>
>> anyone have any ideas.
>
> Try the follwing sequence of commands:
>
> service crond stop
> service sendmail stop
> killall -9 sendmail
> cd /var/spool
> rm -R mqueue
> mkdir mqueue
> chmod 700 mqueue
> chown root:mail mqueue
> service sendmail start
> service crond start
>
> That stops Sendmail and Crond (or Active Monitor will start Sendmail again),
> removes the mqueue directory, re-creates it with the right UID, GID and
> permissions and then Sendmail and Crond are restarted.
>
> --
> With best regards
>
> Michael Stauber
>
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at blueonyx.it
> http://www.blueonyx.it/mailman/listinfo/blueonyx
>



More information about the Blueonyx mailing list