If you want to move suspicious files to a separate directory, run the scan using the -move parameter: With these parameters, the antivirus will immediately delete the infected files. # clamscan -infected -remove -recursive /var/www/ To scan the specified directory for viruses, use the following command: Then you can run the antivirus service or enable it:Īfter you have configured the ClamAV antivirus service, you can scan any server directory for viruses (scanner mode). To make it more convenient, we have deleted change the configuration in the file: Īfter = syslog.target nss-lookup.target network.targetĮxecStart = /usr/sbin/clamd -c /etc/clamd.d/nf The configuration file already exists, but you will have to change its name: Like you did for freshclam, create a service for ClamAV. Then you can start your service and add it to startup: # nano /usr/lib/systemd/system/rviceĪnd add the following contents to it:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |