agenteo wrote:
It seems you may want to run clamscan instead of the daemon.this is the log I get: /home/teottie/.viminfo: Unable to open file or directory ERROR /home/teottie/mbox: Unable to open file or directory ERROR /home/teottie/.bash_history: Unable to open file or directory ERROR /home/teottie/clamav-testfiles/test-failure.rar: RAR module failure ERROR /home/teottie/clamav-testfiles/test: ClamAV-Test-Signature FOUND /home/teottie/clamav-testfiles/test-zip-noext: ClamAV-Test-Signature FOUND /home/teottie/clamav-testfiles/test.bz2: ClamAV-Test-Signature FOUND /home/teottie/clamav-testfiles/test.msc: ClamAV-Test-Signature FOUND /home/teottie/clamav-testfiles/test.rar: ClamAV-Test-Signature FOUND/home/teottie/clamav-testfiles/test.zip: ClamAV-Test-Signature FOUND /home/carinic/.bash_history: Unable to open file or directory ERROR
I didn't understand why it gives error while tring to open thoose dotted files, I was loggedin as teottie while the scan was working. But carinic was not connected! Thanks in advance, Enrico
The difference is: clamd runs as user clamav by default (on Debian). clamd and it's client program, clamdscan, were made for email scanning, where there are many (even concurrent) invocations in a small time. Here the daemon keeps the malware database in memory all the time. It also scans with the privileges of the daemon process, not the one who invoked clamdscan.
You can change the daemon's user id by running "dpkg-reconfigure clamav-daemon", and instruct it to run as root. You can also edit /etc/clamav/clamav.conf [clamd.conf in 0.80 or newer); look for the "User" directive.
clamscan (note the missing "d") on the other hand, loads the malware database each time it starts, but runs with the privileges ov the invoking user. This way it is better suited for scanning whole file shares (eg once a day).
Hope this helped you, Thomas
------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users