[Ubuntu 20.04] 修复‘systemd-shutdown[1]: waiting for process: crond’需等待1分半钟的问题

发布时间 2023-10-16 08:55:16作者: 茶猫的学习笔记

由于在2020-2021年期间下载过Linux版本的Free Download Manager(简称FDM,一款免费但不开源的跨平台下载工具),而该软件的官网被挂了木马,因此在此期间下载安装过FDM的Linux用户,其定时任务crond中都被挂上了木马。

具体现象为,关机时需要等待1分30秒,系统显示‘systemd-shutdown[1]: waiting for process: crond’。

手动清除该病毒,需要先将FDM升级到2022或2023年以后的版本,例如:v6.19.1,然后在终端运行如下命令:

sudo rm /etc/cron.d/collect /var/tmp/crond /var/tmp/bs

删除以上3个文件后,再重启PC两次,确认问题是否解决。

参考链接:

https://thehackernews.com/2023/09/free-download-manager-site-compromised.html

https://www.cnblogs.com/dream-it-possible/p/13285738.html

https://ubuntuhandbook.org/index.php/2021/12/waiting-for-process-crond/

https://unix.stackexchange.com/questions/590510/kubuntu-20-04-shutdown-reboot-hangs-at-waiting-for-process-crond