Advertisement
echoslider

finish_clamav_onaccess_ubuntu

Jun 30th, 2023 (edited)
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | Cybersecurity | 0 0
  1. apt-get install clamav clamav-freshclam clamav-daemon
  2.  
  3.  
  4. vi /etc/clamav/clamd.conf
  5.  
  6. OnAccessMaxFileSize 4000M
  7. OnAccessPrevention yes
  8. OnAccessIncludePath /home/USERNAME/Downloads
  9. OnAccessExcludeUname clamav
  10.  
  11.  
  12. egrep -v '(^.*#|^$)' /etc/clamd.conf
  13.  
  14. vi /etc/systemd/system/antivirus.service
  15.  
  16. [Unit]
  17. Description=Clamonacc Service
  18. After=network.target
  19.  
  20. [Service]
  21. ExecStart=/usr/sbin/clamonacc --remove --fdpass --stream --foreground
  22. User=root
  23. ExecStop=/bin/kill -9 "$MAINPID"
  24.  
  25. [Install]
  26. WantedBy=multi-user.target
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement