Thanks for the link, JG.

I didn't realize running clamdscan as root would cause problems.  I did
that in all my tests to try to alleviate any permissions issues.  I'll
make sure I run all my tests as a regular user from now on.

In the first test, clamdscan works on my machine as well.  When I make
the file in /tmp 640, however, I receive a different error message:

----------------------------------
/tmp/eicar.com.txt: Access denied. ERROR
----------------------------------

This is different from the lstat() error I receive in every other case.
/tmp/ appears to be a special case.  I need to scan other directories...

Also, when I tried adding clamav to my user's group, it appeared to
work, but I got more errors when restarting the daemon followed by the
same "Access denied" error:

----------------------------------
awensley@uhs:/tmp$ service clamav-daemon restart
chown: changing ownership of `/var/run/clamav': Operation not permitted
chown: changing ownership of `/var/run/clamav': Operation not permitted
 * Stopping ClamAV daemon clamd                                                 
                                                                                
                                                                                
             kill: 405: Operation not permitted                                 
         [fail]
chown: changing ownership of `/var/run/clamav': Operation not permitted
 * Starting ClamAV daemon clamd                                                 
                                                                                
                                                                                
             start-stop-daemon: Unable to set gid to 130 (Operation not 
permitted)                [fail]
awensley@uhs:/tmp$ clamdscan /tmp/eicar.com.txt 
/tmp/eicar.com.txt: Access denied. ERROR

----------- SCAN SUMMARY -----------
Infected files: 0
Total errors: 1
Time: 0.001 sec (0 m 0 s)
awensley@uhs:/tmp$

-- 
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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to