Not sure what's going on here. I've installed
clamav-daemon to run automated scans (using cron) on my machine running Ubuntu Desktop 10.04 LTS x64.
Unfortunately, clamdscan refuses to scan anything. This is the output I receive every time I try:
root@uhs:/raid/Share/Public/# clamdscan -v /raid/Share/Public/ /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/#
/raid/Share/Public has 777 permissions, and the clamav-daemon user
clamav has been added to both the
root groups. I get the same error no matter what files or directories I try to scan.
I even ran
dpkg-reconfigure clamav-base and made the daemon user
root to see if that would help (which it didn't). And I have of course run
service clamav-daemon restart in between all of these changes.
I'm aware of the
cat file_name | clamdscan - option, but I need to be able to scan whole directories recursively, so obviously this won't work.
What am I doing wrong? Can I use clamdscan?
Thank you for any help.
sudo -u clamav stat /raid/Share/Public/:
root@uhs:/raid/Share/Public# sudo -u clamav stat /raid/Share/Public/ File: `/raid/Share/Public/' 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:/raid/Share/Public#
I have this exact same problem on 5 separate Ubuntu 10.04 machines; 3 of them servers. So either I'm missing something or there's a real problem here.
I've submitted this as a bug report on Launchpad