Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt-get install clamav clamav-freshclam clamav-daemon
- vi /etc/clamav/clamd.conf
- OnAccessMaxFileSize 4000M
- OnAccessPrevention yes
- OnAccessIncludePath /home/USERNAME/Downloads
- OnAccessExcludeUname clamav
- egrep -v '(^.*#|^$)' /etc/clamd.conf
- vi /etc/systemd/system/antivirus.service
- [Unit]
- Description=Clamonacc Service
- After=network.target
- [Service]
- ExecStart=/usr/sbin/clamonacc --remove --fdpass --stream --foreground
- User=root
- ExecStop=/bin/kill -9 "$MAINPID"
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement