You are not logged in.

#1 2019-07-27 15:12:17

collector1871
Member
From: Poland
Registered: 2016-12-05
Posts: 51

[SOLVED] clamAV : LibClamAV Error: cli_load(): Can't open file...

hi, i am trying to use ClamAV as described here:
https://wiki.archlinux.org/index.php/ClamAV

i executed :

curl https://www.eicar.org/download/eicar.com.txt | clamscan -

and the output is:

LibClamAV Error: cli_load(): Can't open file /var/lib/clamav/bytecode.cld
LibClamAV Error: cli_loaddbdir(): error loading database /var/lib/clamav/bytecode.cld
ERROR: Can't open file or directory

----------- SCAN SUMMARY -----------
Known viruses: 4566249
Engine version: 0.101.2
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 5.714 sec (0 m 5 s)

so we have two errors:

LibClamAV Error: cli_load(): Can't open file /var/lib/clamav/bytecode.cld
LibClamAV Error: cli_loaddbdir(): error loading database /var/lib/clamav/bytecode.cld

UPDATE:

it seems that /var/lib/clamav/bytecode.cld is with 600 permission (user // group : clamav // clamav)
what permissions are correct for this file?

any idea with that?

UPDATE2:
should be 644

Last edited by collector1871 (2019-07-27 20:29:14)


My: AUR and homepage .

Offline

#2 2019-07-27 15:15:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,762

Re: [SOLVED] clamAV : LibClamAV Error: cli_load(): Can't open file...

Dit: https://wiki.archlinux.org/index.php/Cl … g_database

Last edited by seth (2019-07-27 15:17:15)

Offline

#3 2019-07-27 15:20:20

collector1871
Member
From: Poland
Registered: 2016-12-05
Posts: 51

Re: [SOLVED] clamAV : LibClamAV Error: cli_load(): Can't open file...

i run sudo chmod 644 /var/lib/clamav/bytecode.cld
and output seems to be correct:

~ % curl https://www.eicar.org/download/eicar.com.txt | clamscan -

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    68  100    68    0     0    177      0 --:--:-- --:--:-- --:--:--   177
stdin: Win.Test.EICAR_NDB-1 FOUND

----------- SCAN SUMMARY -----------
Known viruses: 4566343
Engine version: 0.101.2
Scanned directories: 0
Scanned files: 1
Infected files: 1
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 6.111 sec (0 m 6 s)

644 is OK for /var/lib/clamav/bytecode.cld ?

Last edited by collector1871 (2019-07-27 15:20:36)


My: AUR and homepage .

Offline

Board footer

Powered by FluxBB