Email system faults caused by scheduled tasks

Source: Internet
Author: User
After receiving a friend's call for help, he said that sending and receiving emails was very slow, and the email server was also very slow to log on to. after asking about the network conditions and hardware problems, he tried to log on to the system and check the system. It was so slow that the prompt for entering the password never appeared. after about a minute, the... information & nbs

After receiving a friend's call for help, he said that sending and receiving emails was very slow, and the email server was also very slow to log on to. after asking about the network conditions and hardware problems, he tried to log on to the system and check the system.
It was so slow that the prompt for entering the password never appeared. after about a minute, the long-overdue cursor finally gave up! Okay. enter the password and log on. The command line interface is also slow!

First, check the CPU usage. top capital key. open input P.
Strange! How can a chmod process always exist? Normally, you do not need to change the file permission all the time. is it hacked?


Check the system process.
Ps aux | grep chmod my day! It turns out that the folder permission under the user's mailbox directory has been being executed to change the chmod 777/home/mailbox/* command


After thinking about it, this command should be executed very quickly and should not always exist. there are only two reasons for this. One is that some people are always executing this command, I don't think that hacker has such patience. you are persistent enough. one is a cron task.
This is true for crontab-l. you can see the figure!



In this case, the system is constantly executing this task, and it is strange that the system is not slow.

Kill it !! Killall chmod

Delete this scheduled task!
System Recovery
 

This article is from the "Shadow Knight" blog

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.