Finalement, tout cela m’a agacé et j’ai désinstallé ClamAV, supprimé les fichiers de conf et réinstallé le tout avec un simple
dnf install clamav clamd clamav-update
Puis refait la commande freshclam et là surprise cela fonctionne .
[root@gestion ~]# freshclam
ClamAV update process started at Sun Jan 21 04:51:56 2024
daily database available for download (remote version: 27160)
Time: 0.8s, ETA: 0.0s [========================>] 59.75MiB/59.75MiB
Testing database: ‹ /var/lib/clamav/tmp.620395207a/clamav-d936c7eb24fe88d9f2f229fccbe92b71.tmp-daily.cvd › …
Database test passed.
daily.cvd updated (version: 27160, sigs: 2051246, f-level: 90, builder: raynman)
main database available for download (remote version: 62)
Time: 1.9s, ETA: 0.0s [========================>] 162.58MiB/162.58MiB
Testing database: ‹ /var/lib/clamav/tmp.620395207a/clamav-fd1f47768f94436d9b1167be2b60df58.tmp-main.cvd › …
Database test passed.
main.cvd updated (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr)
bytecode database available for download (remote version: 334)
Time: 0.2s, ETA: 0.0s [========================>] 285.12KiB/285.12KiB
Testing database: ‹ /var/lib/clamav/tmp.620395207a/clamav-496fde640a0800410b1494a00845e0be.tmp-bytecode.cvd › …
Database test passed.
bytecode.cvd updated (version: 334, sigs: 91, f-level: 90, builder: anvilleg)
Petite vérification pour le service :
[root@gestion ~]# systemctl status freshclam
● freshclam.service - ClamAV Scanner
Loaded: loaded (/usr/lib/systemd/system/freshclam.service; enabled; preset: disabled)
Active: active (running) since Sun 2024-01-21 04:53:21 CET; 13s ago
Main PID: 145677 (freshclam)
Tasks: 1 (limit: 48857)
Memory: 1.7M
CPU: 12ms
CGroup: /system.slice/freshclam.service
└─145677 /usr/bin/freshclam -d -c 1
janv. 21 04:53:21 gestion.et-consult.fr systemd[1]: Starting ClamAV Scanner…
janv. 21 04:53:21 gestion.et-consult.fr systemd[1]: Started ClamAV Scanner.
[root@gestion ~]# sed -i ‹ s/#LocalSocket /run/LocalSocket /run/g › /etc/clamd.d/scan.conf
Ensuite, démarrage du service clamd :
[root@gestion ~]# systemctl start clamd@scan
[root@gestion ~]# systemctl enable clamd@scan
Created symlink /etc/systemd/system/multi-user.target.wants/[email protected] → /usr/lib/systemd/system/[email protected].
Vérification du service :
[root@gestion ~]# systemctl status clamd@scan
● [email protected] - clamd scanner (scan) daemon
Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; preset: disabled)
Active: active (running) since Sun 2024-01-21 04:54:19 CET; 16s ago
Docs: man:clamd(8)
man:clamd.conf(5)
Introduction - ClamAV Documentation
Main PID: 145714 (clamd)
Tasks: 2 (limit: 48857)
Memory: 1.2G
CPU: 10.862s
CGroup: /system.slice/system-clamd.slice/[email protected]
└─145714 /usr/sbin/clamd -c /etc/clamd.d/scan.conf
janv. 21 04:54:19 gestion.et-consult.fr clamd[145714]: ELF support enabled.
janv. 21 04:54:19 gestion.et-consult.fr clamd[145714]: Mail files support enabled.
janv. 21 04:54:19 gestion.et-consult.fr clamd[145714]: OLE2 support enabled.
janv. 21 04:54:19 gestion.et-consult.fr clamd[145714]: PDF support enabled.
janv. 21 04:54:19 gestion.et-consult.fr clamd[145714]: SWF support enabled.
janv. 21 04:54:19 gestion.et-consult.fr clamd[145714]: HTML support enabled.
janv. 21 04:54:19 gestion.et-consult.fr clamd[145714]: XMLDOCS support enabled.
janv. 21 04:54:19 gestion.et-consult.fr clamd[145714]: HWP3 support enabled.
janv. 21 04:54:19 gestion.et-consult.fr clamd[145714]: Self checking every 600 seconds.
janv. 21 04:54:19 gestion.et-consult.fr systemd[1]: Started clamd scanner (scan) daemon.
Donc tout fonctionne correctement y compris le service clamd.
Je repasse au tests sur dolibarr et je refais un retour.