I regularly use clamscan to scan my filesystem using cron. I'm now also looking 
to scan individual files from either the command line or from a file manager 
like dolphin.

I've tried both clamscan and clamdscan.

clamscan works as from a standard user but takes 21 seconds as it has to load 
the dictionary each time.

clamdscan works, only as root, then only if the file contents are piped through 
stdin it is fast completing the scan in less than two seconds.

What I would like to do is to be able to use clamdscan as a statndard user. 
See below for my results thus far.

Any suggestions will be greatfully received.

If I scan from the command line, as a standard user, using clamscan I get this 

$ clamscan nw1700.p65
nw1700.p65: BC.Exploit.CVE_2013_3906 FOUND

----------- SCAN SUMMARY -----------
Known viruses: 2964067
Engine version: 0.98
Scanned directories: 0
Scanned files: 1
Infected files: 1
Data scanned: 12.92 MB
Data read: 6.51 MB (ratio 1.98:1)
Time: 21.465 sec (0 m 21 s)


If as root I start clamd and than scan from the command line, as a standard 
user, using clamdscan I get this -

$ clamdscan - <nw1700.p65  
ERROR: Can't connect to clamd: Permission denied

----------- SCAN SUMMARY -----------
Infected files: 0
Time: 0.000 sec (0 m 0 s)


whereas if I scan from the command line, as root, using clamdscan I get this -

$ clamdscan - <nw1700.p65
fd[11]: BC.Exploit.CVE_2013_3906 FOUND

----------- SCAN SUMMARY -----------
Infected files: 1
Time: 1.683 sec (0 m 1 s)


In respect of the signature BC.Exploit.CVE_2013_3906 that's another story, at 
the moment I'm only interested in running clamdscan as a standard user.


Alex


_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/support/ml

Reply via email to