-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, Mar 12, 2006 at 02:53:21PM +0100, MP wrote:

>ok, that's fine, so when I need to scan a directory, I'll use clamdscan 
>in the future.

Point to note:  the clamd daemon by default changes user when it starts
from root down to a regular user, usually clamav.  Whatever directory or
files you need scanned will have to be readable by the user clamav.  If
it's not, then you have two choices:

1) make clamd run as user root instead of regular user clamav (not
recommended).
2) run clamscan when you need to scan files or directories from the
commandline.

The original drive behind clamav was to be used to scan incoming mail.
In this capacity, you usually configure clamav to run as whatever user
the mail program writes the temporary files it wants clamav to scan.  In
your case, you are manually invoking it to scan specific files and
subdirectories which are probably going to be various users.  In that
case, your best bet is to run clamscan as root so it can access
everything.  Efficiency takes a back seat in this case because you need
root permissions.

- -- 
Regards...              Todd
They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety.       --Benjamin Franklin
Linux kernel 2.6.12-15mdksmp   2 users,  load average: 0.04, 0.10, 0.09
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEFdNhY2VBGxIDMLwRAqNfAJ90OeMr0JzXnuSRHri6M37XWiZCrACfTOt4
x86ouZwdwZVq8fMrd/z7ImI=
=nCed
-----END PGP SIGNATURE-----
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to