ClamAV run as user

PascalSc

New member
Joined
Sep 27, 2017
Messages
2
Dear sir/madam,

I have installed clamav on my centos 7 server with directadmin.

When i use the command: clamscan -r /home/admin on the user root everything works perfect.

But when i login as the admin user i get the following errors.
How can i use ClamAV on user level.

[admin@s01 /]$ clamscan -r /home/admin
LibClamAV Error: mpool_malloc(): Can't allocate memory (262144 bytes).
LibClamAV Error: hm_addhash_bin: failed to grow hash array to 104 entries
LibClamAV Error: cli_loadhash: Malformed hash string at line 900776
LibClamAV Error: cli_loadhash: Problem parsing database at line 900776
LibClamAV Error: Can't load daily.hsb: Can't allocate memory
LibClamAV Error: cli_tgzload: Can't load daily.hsb
LibClamAV Error: Can't load /var/lib/clamav/daily.cld: Malformed database
ERROR: Malformed database

----------- SCAN SUMMARY -----------
Known viruses: 3798
Engine version: 0.99.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: 0.932 sec (0 m 0 s)

Regards Pascal
 
Hello Pascal,

Check and see the error: "Can't allocate memory". Are you on CloudLinux ? Or is it a regular CentOS 7 ?
 
On this moment Centos 7. A few weeks cloudlinix. A see that error but there is menory enough.

Regards,
Pascal
 
Amount of available RAM on the server is not the same for every user if an user is limited to use only specific portion of RAM. Check you setup and ulimits for admin. Login as admin and run:

Code:
ulimit -a
 
Back
Top