clamdscan can't scan anything
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clamav (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
exim4 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: clamav-daemon
No matter what directory(ies) or file(s) I try to scan with clamdscan, I receive the following error immediately:
-------
root@uhs:
/raid/Share/Public: lstat() failed: Permission denied. ERROR
----------- SCAN SUMMARY -----------
Infected files: 0
Total errors: 1
Time: 0.004 sec (0 m 0 s)
root@uhs:
-------
/raid/Share/Public has 777 permissions:
-------
root@uhs:
File: `/raid/
Size: 6 Blocks: 0 IO Block: 4096 directory
Device: 900h/2304d Inode: 54526208 Links: 2
Access: (0777/drwxrwxrwx) Uid: ( 1000/awensley) Gid: ( 120/ admin)
Access: 2011-01-19 01:00:00.304365306 -0600
Modify: 2011-01-18 22:47:06.793592673 -0600
Change: 2011-01-19 00:42:52.023813550 -0600
root@uhs:
-------
I tried adding clamav to the admin and root user groups. No difference.
After reading through this bug report:
https:/
I added the following lines to /etc/apparmor.
-------
/raid/ r,
/raid/** r,
-------
Restarted apparmor and clamav-daemon, same problem. Also, the lines allowing the user's home directory to be scanned were already in there, so I'm definitely using a version in which the developers believe that bug is fixed.
I've even disabled apparmor and selinux completely by running:
-------
root@uhs:
* Unloading AppArmor profiles [ OK ]
root@uhs:
root@uhs:
-------
Restarted clamav-daemon, and still had the same problem.
I receive this same error message no matter what I try to scan - even my home directory - and it's always immediately. I have the same issue on 5 separate Ubuntu 10.04 machines, 3 of which are servers.
After asking this question on Ask Ubuntu:
http://
I've concluded that this is a bug.
-------
Description: Ubuntu 10.04.1 LTS
Release: 10.04
ClamAV 0.96.5/12572/Tue Jan 25 22:02:00 2011
clamav-daemon:
Installed: 0.96.5+
Candidate: 0.96.5+
Version table:
*** 0.96.5+
500 http://
100 /var/lib/
0.
500 http://
0.
500 http://
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: clamav-daemon 0.96.5+
ProcVersionSign
Uname: Linux 2.6.32-27-server x86_64
Architecture: amd64
Date: Wed Jan 26 17:13:11 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu-Server 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.2)
ProcEnviron:
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: clamav
description: | updated |
description: | updated |
Changed in clamav (Ubuntu): | |
status: | New → Incomplete |
Changed in clamav (Ubuntu): | |
status: | Expired → New |
Changed in clamav (Ubuntu): | |
importance: | Undecided → Medium |
I'm having a similar issue,
running clamscan as either root or as user will scan my home folder no issues, installing clamav-daemon and running clamdscan will result in a lot of permission errors being thrown up and some files being missed entirely?
clamscan:
----------- SCAN SUMMARY -----------
Known viruses: 813879
Engine version: 0.96.5
Scanned directories: 1
Scanned files: 23
Infected files: 0
Data scanned: 3.73 MB
Data read: 31.42 MB (ratio 0.12:1)
Time: 2.451 sec (0 m 2 s)
clamdscan:
----------- SCAN SUMMARY -----------
Infected files: 0
Total errors: 76
Time: 32.342 sec (0 m 32 s)