/go/antivirus: antivirus from the Command Line

Malware that gets into a hosting account often keeps itself alive by adding a cron job to that user's crontab. /go/antivirus removes that hiding place. It: It does not scan files and does not use virus signatures. To scan for malware, use clamav or scan. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# See which crontabs would be deleted (RHEL-family path)
ls /var/spool/cron

# Delete them (run as root)
/go/antivirus

Examples

# Preview: list the crontab files (AlmaLinux, Rocky, CentOS, Red Hat, Fedora)
ls /var/spool/cron

# Preview: list the crontab files (Debian, Ubuntu)
ls /var/spool/cron/crontabs

# Delete the crontabs of every user except root and go
/go/antivirus

# Review the log of past runs
tail -n 20 /var/log/go/antivirus.log

Output

Message Meaning
Deleting Malware <user>... The crontab of <user> was deleted, and /tmp was emptied.
(nothing) Only the root and go crontabs exist, so nothing was deleted.

The command always finishes without an error status.

See the full reference at /go/antivirus and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *