clamav on-access scan in 14.04
I have asked the same question in askubuntu, but did not get any reply. Maybe too specific.
I try to use clamav for on-access virus scanning for my home directory and all mounted drives. I found some rather old (2005) instructions in http://
Since dazuko was replaced by fanotify, the parameters in clamd.conf are slightly different. Here are my relevant clamd.conf entries:
ScanOnAccess true
# ClamukoScanOnOpen true
# ClamukoScanOnExec true
OnAccessIncludePath /home
OnAccessIncludePath /mnt
OnAccessIncludePath /media
VirusEvent /opt/clamdazer %v &
If I restart clamd (by "sudo invoke-rc.d clamav-daemon restart"), the log has the following:
ERROR: ScanOnAccess: fanotify_init failed: Operation not permitted
ScanOnAccess: clamd must be started by root
I tried to change the "User clamav" line in clamd.conf to "User root", but then the start of clamd will fail with "ERROR: initgroups() failed".
I found some bug reports which maybe relevant here: Ubuntu Bug #1404762 and possibly Debian bug 749027 (https:/
Unfortunately, I did not succeed using the solutions described there.
Presently, it seems, on-access scanning does not work at all.
How to get this to work?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu clamav Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Hartwig Kolbe for more information if necessary.