[Bug 708395] Re: clamdscan can't scan anything

Imre Gergely 708395 at bugs.launchpad.net
Thu Jan 27 07:04:21 UTC 2011


clamdscan is just a command line tool that issues commands to clamav-daemon. The files are scanned by clamav-daemon, which runs as a daemon with clamav user (by default). You can only scan folders and files to which clamav-daemon (the clamav user) has access to.
So if you want to check a directory like /a/b/c, every directory along the way has to have the correct permissions for clamav user to access them. If /a doesn't have it, clamav-daemon can't get to b or c...
clamdscan is not really ment to be run by normal users from the command line. If you really want that, you have to give the correct permissions to clamav-daemon (= clamav user).
clamscan on the other hand should work just fine on every directory your user has access to, it's just that it's slower because it has to load the virus database at startup.
The above goes when apparmor/selinux is not running. If apparmor is running, there are more restrictions on clamav-daemon.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in ubuntu.
https://bugs.launchpad.net/bugs/708395

Title:
  clamdscan can't scan anything



More information about the Ubuntu-server-bugs mailing list